fix: call node::Stop on exit (#25458)

* fix: call node::Stop on exit

* also call Stop in node_main

* oop, we were already calling set_can_call_into_js(false)??

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
trop[bot]
2020-09-15 10:25:40 -06:00
committed by GitHub
parent fbd99fbed1
commit 7fc5c468e9
2 changed files with 2 additions and 1 deletions

View File

@@ -289,7 +289,7 @@ int NodeMain(int argc, char* argv[]) {
node::ResetStdio();
env->set_can_call_into_js(false);
node::Stop(env);
env->stop_sub_worker_contexts();
env->RunCleanup();