src: document required else block at src/node_platform.cc#34688
src: document required else block at src/node_platform.cc#34688juanarbol wants to merge 1 commit intonodejs:masterfrom
Conversation
addaleax
left a comment
There was a problem hiding this comment.
This is not redundant because it moves the task out of the InternalCallbackScope in the case in which env is available.
|
@addaleax since the code is now run after the |
|
@BridgeAR No – this is als the cause of the failures in the WASI tests here, I assume. More generally, in C++ if (x) {
some_variable a;
do_something();
} else {
do_something();
}and if (x) {
some_variable a;
}
do_something(); are not equivalent if the constructor/destructor of |
|
Hey @addaleax thank you!! I was asking why it did break WASI tests. Closing. |
|
@juanarbol Fwiw, you’re not the first one who ran into this, so it might be worth adding a comment here that this is intentional (especially considering that this PR already had 4 approvals) |
4209ff9 to
24fba59
Compare
|
Landed in 535989e |
PR-URL: #34688 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #34688 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#34688 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes