You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at JsonStringify (/Users/.../balloon-client-desktop/node_modules/fast-safe-stringify/index.js:18)
at stringify (/Users/.../balloon-client-desktop/node_modules/fast-safe-stringify/index.js:27)
The text was updated successfully, but these errors were encountered:
Describe the bug
When logging an object with a BigInt
Uncaught TypeError: Do not know how to serialize a BigInt
is thrown.To Reproduce
There are two known cases in sync module where BigInt's are logged:
https://github.com/gyselroth/balloon-node-sync/blob/97bd70918eeaa901d74f743dfb878fbb619068f8/lib/delta/delta.js#L423
https://github.com/gyselroth/balloon-node-sync/blob/97bd70918eeaa901d74f743dfb878fbb619068f8/lib/delta/delta.js#L445
There are
Expected behavior
Logger should serialize BigInt's to a string.
Environment
Additional context
See: davidmarkclements/fast-safe-stringify/issues/41
The text was updated successfully, but these errors were encountered: