Skip to content

Commit 0e67549

Browse files
committed
Solve compilation bugs on previous commit in node loader.
1 parent aa8dfe9 commit 0e67549

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/loaders/node_loader/source/node_loader_impl.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,13 +3569,11 @@ void *node_loader_impl_register(void *node_impl_ptr, void *env_ptr, void *functi
35693569
v8::Local<v8::Context> context = isolate->GetCurrentContext();
35703570
node::Environment *nodeEnv = node::GetCurrentEnvironment(context);
35713571
auto handler = [&](node::Environment *nodeEnv, int exit_code) {
3572-
nodeEnv->set_can_call_into_js(false);
3573-
nodeEnv->stop_sub_worker_contexts();
3574-
v8::DisposePlatform();
3575-
uv_library_shutdown();
3572+
(void)node::Stop(nodeEnv);
3573+
/* uv_library_shutdown(); */ // Does not allow reinitialization
35763574
if (exit_code != 0)
35773575
{
3578-
exit(exit_code); // Not sure about this anyway
3576+
exit(exit_code);
35793577
}
35803578
};
35813579
node::SetProcessExitHandler(nodeEnv, handler);

0 commit comments

Comments
 (0)