Closed ccstolley closed 9 years ago
Hello Colin,
Thanks for reporting and all the details! I have reproduced and fixed your issue. It had to do with the encoder/decoder not handling uncompressable data well.
You should use v0.2.3 to get the latest fixes.
Cheers,
Pierre
I'm still getting a similar error when trying to call .encode() on a string using version 0.3.11. Any idea what my be causing this issue?
buffer.js:705
throw TypeError('value is out of bounds');
^
TypeError: value is out of bounds
at TypeError (
I have pushed an update (0.3.12). Let me know if this resolves your issue.
This seems like it should work:
But it yields:
This is apparently due to a bad bitwise OR statement at line 95 in encoder.js that produces a signed int rather than unsigned, which in turn blows an exception in buffer.js:
However, replacing the bitwise OR with + does not fix the issue completely. When attempting to decode, you will hit a different error: