Open kawanet opened 5 years ago
Node.js supports BigInt BigInt64Array BigUInt64Array which are proposed at stage 3 at TC39.
BigInt
BigInt64Array
BigUInt64Array
$ node -e 'console.log(typeof 1n)' bigint $ node -e 'console.log("" + 9007199254740993)' 9007199254740992 $ node -e 'console.log("" + 9007199254740993n)' 9007199254740993
We currently have int64 option to decode msgpack's (u)int64 with int64-buffer object.
int64
var codec = msgpack.createCodec({int64: true});
Features:
{bigint: true}
@kawanet what is the state of bigint support?
this is level 4 now.
Node.js supports
BigInt
BigInt64Array
BigUInt64Array
which are proposed at stage 3 at TC39.We currently have
int64
option to decode msgpack's (u)int64 with int64-buffer object.Features:
{bigint: true}
option.