aboutsummaryrefslogtreecommitdiff
path: root/src/node_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index d457ab0c3e..2d960f6e4d 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -569,6 +569,12 @@ void InitWorker(Local<Object> target,
FIXED_ONE_BYTE_STRING(env->isolate(), "isMainThread"),
Boolean::New(env->isolate(), env->is_main_thread()))
.FromJust();
+
+ target
+ ->Set(env->context(),
+ FIXED_ONE_BYTE_STRING(env->isolate(), "ownsProcessState"),
+ Boolean::New(env->isolate(), env->owns_process_state()))
+ .FromJust();
}
} // anonymous namespace