-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Class: Buffer do not follow when the underlying ArrayBuffer is resized #52195
Comments
Behavior comes from: Lines 476 to 505 in bae14b7
/cc @nodejs/buffer |
|
This will break me. Please don't. |
Fixes: #52195 PR-URL: #55377 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Fixes: #52195 PR-URL: #55377 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#52195 PR-URL: nodejs#55377 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#52195 PR-URL: nodejs#55377 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Fixes: #52195 PR-URL: #55377 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Version
v21.7.1
Platform
Microsoft Windows NT 10.0.22631.0 x64
Subsystem
Class: Buffer
What steps will reproduce the bug?
Output:
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
Expecting buffer to be resized and output to be:
<Buffer ff 01 02 03 04 05 06 07>
What do you see instead?
<Buffer ff 01 02 03>
Additional information
If the resolution to this is that Buffer isn't going to support ArrayBuffer.resize() that should be reflected in the documentation.
The text was updated successfully, but these errors were encountered: