darrachequesne / notepack

A fast Node.js implementation of the latest MessagePack spec
MIT License
75 stars 19 forks source link

remove the unsafe integer check #15

Closed darrachequesne closed 7 years ago

darrachequesne commented 7 years ago

That check caused 'Integer is unsafe' errors when integers above (2^53 - 1) were encoded.

By the JSON specification, a Number is not limited in size, and that behaviour differed from the other implementations like msgpack-lite.