mcollina / msgpack5

A msgpack v5 implementation for node.js, with extension points / msgpack.org[Node]
MIT License
492 stars 76 forks source link

Allow NaN #94

Closed ninevra closed 3 years ago

ninevra commented 3 years ago

Allows encoding NaN, prefering float32 unless otherwise indicated.

Tests decoding, encoding, and round-tripping NaN.

Uses Object.is() in one place, breaking IE support; if that's something msgpack5 promises, it can be worked around.

Closes #93.