Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/env.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.cc b/src/env.cc
index 58681cdcccc..4aeabbde886 100644
--- a/src/env.cc
+++ b/src/env.cc
@@ -1141,6 +1141,8 @@ uv_key_t Environment::thread_local_env = {};
void Environment::Exit(int exit_code) {
if (options()->trace_exit) {
HandleScope handle_scope(isolate());
+ Isolate::DisallowJavascriptExecutionScope disallow_js(
+ isolate(), Isolate::DisallowJavascriptExecutionScope::CRASH_ON_FAILURE);
if (is_main_thread()) {
fprintf(stderr, "(node:%d) ", uv_os_getpid());