mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
src: document required else block at src/node_platform.cc
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
committed by
Anna Henningsen
parent
d8ec5a2e92
commit
535989eb09
@@ -409,6 +409,9 @@ void PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<Task> task) {
|
||||
InternalCallbackScope::kNoFlags);
|
||||
task->Run();
|
||||
} else {
|
||||
// The task is moved out of InternalCallbackScope if env is not available.
|
||||
// This is a required else block, and should not be removed.
|
||||
// See comment: https://github.com/nodejs/node/pull/34688#pullrequestreview-463867489
|
||||
task->Run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user