console-feed icon indicating copy to clipboard operation
console-feed copied to clipboard

Console logging fails when passing a BigInt ("Do not know how to serialize a BigInt")

Open dfahlander opened this issue 3 years ago • 0 comments

To reproduce:

const obj = {
  foo: 3n
};

console.log(obj);

I believe that this file would need to detect bigints (typeof x === 'bigint') and handle encoding/decoding them.

dfahlander avatar Jul 22 '21 11:07 dfahlander