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:
authorAnna Henningsen <anna@addaleax.net>2019-11-13 18:54:57 +0300
committerAnna Henningsen <anna@addaleax.net>2020-03-21 12:57:23 +0300
commitc44edec4daff9f478eb9b5820d03da6c71253787 (patch)
treede93264d6d4a643f478329e67043ecc7f5f8edfc /src/node_worker.cc
parenta9fb51f9be570001accfce8a057e885827655a2f (diff)
src: provide a variant of LoadEnvironment taking a callback
This allows embedders to flexibly control how they start JS code rather than using `third_party_main`. PR-URL: https://github.com/nodejs/node/pull/30467 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index 90e4cfb9034..6772cb9c91f 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -323,6 +323,7 @@ void Worker::Run() {
CreateEnvMessagePort(env_.get());
Debug(this, "Created message port for worker %llu", thread_id_.id);
if (LoadEnvironment(env_.get(),
+ nullptr,
std::move(inspector_parent_handle_))
.IsEmpty()) {
return;