-
-
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
.subarray method should return Buffer
instance
#260
Comments
I wasn't able to reproduce the issue in Chrome, Brave, Firefox, or Safari on desktop. Which browser did you use? I tested by browserifying and running:
which prints out |
I’m using polendina for testing, which is a headless chrome that uses webpack (not browserify). I’m also importing the module explicitly rather that relying on globals. |
There's some weirdness going on with the Lines 111 to 120 in b0a6de5
Need to investigate further. Related: #97 |
We now handle calls like: new Buffer(arraybuffer, 2, 8) so there's no need for this workaround originally implemented in: #97 More info: https://bugs.chromium.org/p/v8/issues/detail?id=4665#c4 Fixes #260. Supersedes #261
Ran across this one today.
Buffer.subarray()
in Node.js will return aBuffer
instance, but in the browser it returns aUint8Array
.The text was updated successfully, but these errors were encountered: