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
require('msgpack5')().encode({a: 10n})
Uncaught Error: not implemented yet
I am a bit surprised that it isn't possible to write a decoder for this. I tried, but I get the same error, since msgpack5 never seems to try to get the value converted:
const m = require('msgpack5')()
m.registerEncoder((t) => (t instanceof BigInt), t => t.toString(10))
m..encode({a: 10n})
Uncaught Error: not implemented yet
The text was updated successfully, but these errors were encountered:
I am a bit surprised that it isn't possible to write a decoder for this. I tried, but I get the same error, since msgpack5 never seems to try to get the value converted:
The text was updated successfully, but these errors were encountered: