-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
url: do not use HandleScope in ToObject #14096
Conversation
It is not needed / invalidates the returned value unlike EscapableHandleScope
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.
Thanks!
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.
Is the Context::Scope
below necessary?
@TimothyGu probably not, unsure though |
@bmeck No matter. This still LGTM. |
@TimothyGu checked things, and it is unneeded / fixed |
Alternative proposal that simply removes the method: #14106 It's not used anywhere so why keep it around? |
@bnoordhuis it was added as I need it for ESM |
Why was it landed in master instead of your local feature branch? :-S Fixing bugs in dead code is a waste of time. |
@bnoordhuis fixing bugs is fixing bugs |
Very droll. My point stands: if it's not used anywhere, it should go. |
@bnoordhuis if I PR against my ESM stuff today does it still stand? |
If you are about to open a PR, then sure, it makes more sense to fix it than remove it. |
give me a day or 2 and I will |
LGTM. |
The |
@bnoordhuis honestly, if you are going to add to my mental strain right now by this being open, closing it. Do what you want. |
It is not needed / invalidates the returned value unlike EscapableHandleScope PR-URL: nodejs#14096 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landing this since it only improves the status quo, and does not interfere with #14106 |
Landed in d49e669 |
It is not needed / invalidates the returned value unlike EscapableHandleScope PR-URL: #14096 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It is not needed / invalidates the returned value unlike EscapableHandleScope PR-URL: #14096 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It is not needed / invalidates the returned value unlike EscapableHandleScope
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
url