samdenty/console-feed

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

dfahlander opened this issue · 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.