pgriess/node-msgpack — Issue #20: Fails to store big integers
Author: AlexeyKupershtokh
Created: 2011-10-13 10:27:27+00:00
State: open

I've added a new test to test.js

testEqual(123456782345245);

wicked@wicked-desktop:~/Alawar/h-n/node_modules/msgpack-0.4/test$ node test.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
AssertionError: 123456782345245 deepEqual 2242389021
at /home/wicked/Alawar/h-n/node_modules/msgpack-0.4/test/test.js:7:12
at Object. (/home/wicked/Alawar/h-n/node_modules/msgpack-0.4/test/test.js:24:1)
at Module._compile (module.js:407:26)
at Object..js (module.js:413:10)
at Module.load (module.js:339:31)
at Function._load (module.js:298:12)
at Array. (module.js:426:10)
at EventEmitter._tickCallback (node.js:126:26)

I expected it to pass and restore the same integer 123456782345245 from the message.