diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-19 17:42:09 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-21 12:57:26 +0300 |
commit | 7dead8440c7ee28131cf496daa7c286eecfd90c7 (patch) | |
tree | 758c1cc77e25be86847fc136442c07a3e506e768 /src/node_worker.cc | |
parent | c44edec4daff9f478eb9b5820d03da6c71253787 (diff) |
src: add LoadEnvironment() variant taking a string
Allow passing a string as the main module rather than using
the callback variant.
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.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc index 6772cb9c91f..d359f6fcea2 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -323,7 +323,7 @@ void Worker::Run() { CreateEnvMessagePort(env_.get()); Debug(this, "Created message port for worker %llu", thread_id_.id); if (LoadEnvironment(env_.get(), - nullptr, + StartExecutionCallback{}, std::move(inspector_parent_handle_)) .IsEmpty()) { return; |