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-02-22 23:01:22 +0300
committerAnna Henningsen <anna@addaleax.net>2019-03-02 15:16:35 +0300
commitf65b4afaea14446c4b313595c03b737ab710c124 (patch)
tree8c424301f605bcc6f0cd715c0822adb75c9f309f /src/node_worker.h
parentb8018f407b2ae2daa70d41b2aa9dbbc5ca921b0f (diff)
worker: provide process.execArgv
Provide `process.execArgv`. If an `execArgv` option is passed to the `Worker` constructor, that option is used as its value; if not, the parent’s `process.execArgv` is inherited (since that also goes for the actual options in that case). PR-URL: https://github.com/nodejs/node/pull/26267 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index fb94bdc307e..442056eaac1 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -38,7 +38,8 @@ class Worker : public AsyncWrap {
Worker(Environment* env,
v8::Local<v8::Object> wrap,
const std::string& url,
- std::shared_ptr<PerIsolateOptions> per_isolate_opts);
+ std::shared_ptr<PerIsolateOptions> per_isolate_opts,
+ std::vector<std::string>&& exec_argv);
~Worker() override;
// Run the worker. This is only called from the worker thread.
@@ -74,6 +75,7 @@ class Worker : public AsyncWrap {
const std::string url_;
std::shared_ptr<PerIsolateOptions> per_isolate_opts_;
+ std::vector<std::string> exec_argv_;
MultiIsolatePlatform* platform_;
v8::Isolate* isolate_ = nullptr;
bool profiler_idle_notifier_started_;