-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buffer and slice #143
Comments
Thanks for trying this. If trireme works differently from Node 0.10 in this On Wed, Jan 27, 2016 at 10:09 AM, DavidApfel notifications@github.com
Greg Brail | apigee https://apigee.com/ | twitter @gbrail |
Yes, Trireme works differently from Node v0.10.32. Thanks! |
Prior to this change, when accessing a Buffer with a negative index, a Java error (java.lang.ArrayIndexOutOfBoundsException) was thrown instead of returning `undefined` per standard node.js functionality. Fixes apigee#143
Prior to this change, when accessing a Buffer with a negative index, a Java error (java.lang.ArrayIndexOutOfBoundsException) was thrown instead of returning `undefined` per standard node.js functionality. Fixes #143
Not sure if this is a bug or just different behaviour than with node, but when using for example the bn.js module with trireme it's a problem.
When using trireme and create a buffer and try to get a minus index [-1] of the buffer it gives an ArrayIndexOutOfBoundsException. When I create then a second buffer with slice() from the first buffer and then try to get a minus index it gives a value. While using node I get undefined in both cases:
trireme:
node:
The text was updated successfully, but these errors were encountered: