-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Backport 7176 for v6.x (buffer: fix creating from zero-length ArrayBuffer) #7421
Conversation
Fixes regression where creating a new Buffer from an empty ArrayBuffer would fail. Ref: 85ab4a5 PR-URL: #7176 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Ron Korving <[email protected]>
@RReverser Does the original not land cleanly? If it landed cleanly, back-porting is not necessary. |
Hmm. It did for me, but @evanlucas wrote in the original PR #7176 (comment):
|
Interesting, I know for a fact none of the buffer ones landed cleanly, but they could have been depending on something else that has been pulled in now? |
Perhaps this one couldn't be landed exactly because of dependency on #7349 which didn't apply 100% cleanly, but now that it's merged, this one should be fine. |
@RReverser that makes sense. |
Anyway, I'm happy to either proceed with this PR or close it, just let me know, which way is simpler and preferable :) |
This lgtm, or we could just cherry-pick if it lands cleanly |
It does, so perhaps cherry-pick will be even easier to do. |
I was able to cherry-pick this cleanly on v6.x. Thanks for going through the trouble of doing this though @RReverser! |
@evanlucas No problem at all, thanks for doing that! |
Checklist
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
buffer
Description of change
This is a backport of #7176 for v6.x. Applied cleanly.