-
-
Notifications
You must be signed in to change notification settings - Fork 239
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.slice is broken for Windows Edge users and in Firefox developer edition #120
Comments
It looks like you're using an old version of this library. You can use |
This issue is fixed in the latest version of buffer. |
By any chance was an issue filed on Edge as well? We care a lot about library compat and want to make sure we don't break the ecosystem. Here's our issue tracker. A complete Gist to reproduce would be really helpful (or at least which version of |
@nolanlawson This issue was fixed by #97 a while ago. |
Ah OK, got it. I'll add a comment to the Mozilla bug. |
We noticed that some Windows Edge users and in the latest developer edition of Firefox (v49) Buffer slice is failing. We successfully worked around the problem by setting
TYPED_ARRAY_SUPPORT = false
. The issue happens when this.subarray(start, end) returns the wrong results. You can see the problem with this test:new Buffer("abc").slice(0, 2) === "abc"
.. This will return true if you have the bug.I believe this.subarray is native so I have also reported this issue here: https://bugzilla.mozilla.org/show_bug.cgi?id=1280052
The text was updated successfully, but these errors were encountered: