This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
Tests no longer pass under Node 10 #62
Comments
Changing that one line from node-lz4/lib/encoder_stream.js Line 215 in 4c8cc28
|
ChALkeR
added a commit
to ChALkeR/node-lz4
that referenced
this issue
Aug 2, 2018
Fix PR: #65 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The Buffer readUInt32LE, readInt32LE, writeUInt32LE, writeInt32LE calls have changed (there's no more
noAssert
parameter) and how things are interpreted also seems to have changed.The code that deals with xxhash now seems to compare signed & unsigned types, and write calls sometimes reject values (seemingly) for being outside the range of a 32-bit integer.
See: https://gist.github.com/leafi/be4fe7807577d170ef558dd0081a3091 for full log
11 passing (30ms)
3 failing
LZ4 checksum should encode/decode data:
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= -2147483648 and <= 2147483647. Received 3675999523
at checkInt (internal/buffer.js:35:11)
at writeU_Int32LE (internal/buffer.js:515:3)
at Buffer.writeInt32LE (internal/buffer.js:684:10)
at Encoder._flush (lib/encoder_stream.js:215:7)
at Encoder.prefinish (_stream_transform.js:141:10)
at prefinish (_stream_writable.js:643:14)
at finishMaybe (_stream_writable.js:651:5)
at endWritable (_stream_writable.js:662:3)
at Encoder.Writable.end (_stream_writable.js:602:5)
at Object.LZ4_compress [as encode] (lib/encoder.js:14:10)
at Context. (test/checksum-test.js:12:20)
LZ4 checksum should encode/decode data:
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= -2147483648 and <= 2147483647. Received 2319569705
at checkInt (internal/buffer.js:35:11)
at writeU_Int32LE (internal/buffer.js:515:3)
at Buffer.writeInt32LE (internal/buffer.js:684:10)
at Encoder._flush (lib/encoder_stream.js:215:7)
at Encoder.prefinish (_stream_transform.js:141:10)
at prefinish (_stream_writable.js:643:14)
at finishMaybe (_stream_writable.js:651:5)
at endWritable (_stream_writable.js:662:3)
at Encoder.Writable.end (_stream_writable.js:602:5)
at Object.LZ4_compress [as encode] (lib/encoder.js:14:10)
at Context. (test/checksum-test.js:21:20)
LZ4 checksum should encode/decode data:
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= -2147483648 and <= 2147483647. Received 3729892867
at checkInt (internal/buffer.js:35:11)
at writeU_Int32LE (internal/buffer.js:515:3)
at Buffer.writeInt32LE (internal/buffer.js:684:10)
at Encoder._flush (lib/encoder_stream.js:215:7)
at Encoder.prefinish (_stream_transform.js:141:10)
at prefinish (_stream_writable.js:643:14)
at finishMaybe (_stream_writable.js:651:5)
at endWritable (_stream_writable.js:662:3)
at Encoder.Writable.end (_stream_writable.js:602:5)
at Object.LZ4_compress [as encode] (lib/encoder.js:14:10)
at Context. (test/checksum-test.js:31:20)
The text was updated successfully, but these errors were encountered: