-
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
[v10.x] Revert buffer crash #23875
[v10.x] Revert buffer crash #23875
Conversation
also... return TextDecoder directly from factories PR-URL: nodejs#23625 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
This reverts commit 2555cb4.
/CC @nodejs/release |
Can you explain how this is preferable over #23795? The main difference seems to be that this re-introduces a bunch of calls to deprecated V8 functions. |
Another difference is that this way, we actually do perform the copy operation if the coercion throws an exception. I think that’s definitely a bug (and, after all, the reason why these calls are deprecated). I’ve updated the test in #23795 to account for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference is for the fix in #23795
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like James, I think this is not the preferable approach, in particular because it keeps the bug around that the deprecation of this methods is supposed to prevent.
@nodejs/tsc ... We have two competing PRs addressing the same issue. We need a resolution. This PR is one option, #23795 is the other. |
Just by looking at the two different solutions I prefer #23795. |
I think the TSC only needs to get involved if this can't be determined within the Release WG who has final authority over release content: https://github.com/nodejs/Release/blob/master/GOVERNANCE.md. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot possibly approve this, since this introduces the use of multiple functions that'll be deprecated in V8 soon. Could you please not use those? I think others will like this one much better without them too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer #23795
FWIW, I am a member of the Release WG and I tagged this |
With regards to v10.x:
2555cb4 is the breaking commit that landed in v10.x (v10.10.0, although the changelog has this as c637d41b9d). #23795 is an attempt to fix the issue while #23875 is a revert. #23795 has a number of approvals, so IMHO can land as a fix. The alternative is to revert (#23875) and then immediately re-backport #22129 including the changes from #23795. |
8b431ad
to
3f63297
Compare
Hello @ryzokuken and thank you for explaining your review.
Since this PR is targeted at v10.x branch only, IMHO this argument is less urgent since there is no V8 bump planned for that branch (especially not a bump that will be semver-major). So as I see your point about not approving, but you did abstain, but chose to to request changes which is more than just approving.
The motivation of this PR is to revert a change that escalated a silent but into a hard crash. IMHO the simplest and safest solution is to revert that change. Specifically since it is a future-compatibility refactoring (which is of less relevance for the LTS branch), and does not introduce new functionality or fixes a bug. |
P.S. As I stated in #23875 (comment) I defer the choice of this over #23795 to the release team, so I'm not sure what is the meaning adding more unexplained ❌s to an already blocked PR. |
@refack I see your point, you're right. I'll dismiss my review. |
Thank you, that is very much appreciated 🎩 |
superseded by #23795 |
Patch for the node10 branch
This reverts 2555cb4 that introduced a native crash, and adds the regression test authored for (#23795)
Refs: #23795
Refs: #22129
Fixes: #23668
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes