Uh oh!
There was an error while loading. Please reload this page.
url: do not use HandleScope in ToObject - #14096
Conversation
It is not needed / invalidates the returned value unlike EscapableHandleScope
TimothyGu
left a comment
There was a problem hiding this comment.
Is the Context::Scope below necessary?
bmeck
commented
Jul 6, 2017
@TimothyGu probably not, unsure though |
TimothyGu
commented
Jul 6, 2017
@bmeck No matter. This still LGTM. |
bmeck
commented
Jul 6, 2017
@TimothyGu checked things, and it is unneeded / fixed |
bnoordhuis
commented
Jul 6, 2017
Alternative proposal that simply removes the method: #14106 It's not used anywhere so why keep it around? |
bmeck
commented
Jul 6, 2017
@bnoordhuis it was added as I need it for ESM |
bnoordhuis
commented
Jul 6, 2017
Why was it landed in master instead of your local feature branch? :-S Fixing bugs in dead code is a waste of time. |
bmeck
commented
Jul 6, 2017
@bnoordhuis fixing bugs is fixing bugs |
bnoordhuis
commented
Jul 6, 2017
Very droll. My point stands: if it's not used anywhere, it should go. |
bmeck
commented
Jul 6, 2017
@bnoordhuis if I PR against my ESM stuff today does it still stand? |
bnoordhuis
commented
Jul 6, 2017
If you are about to open a PR, then sure, it makes more sense to fix it than remove it. |
bmeck
commented
Jul 6, 2017
give me a day or 2 and I will |
XadillaX
commented
Jul 7, 2017
LGTM. |
jasnell
commented
Jul 10, 2017
The |
bmeck
commented
Jul 17, 2017
@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>
refack
commented
Jul 17, 2017
Landing this since it only improves the status quo, and does not interfere with #14106 |
refack
commented
Jul 17, 2017
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