diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-02-22 21:01:22 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-03-02 13:16:35 +0100 |
commit | f65b4afaea14446c4b313595c03b737ab710c124 (patch) | |
tree | 8c424301f605bcc6f0cd715c0822adb75c9f309f /src/node_worker.h | |
parent | b8018f407b2ae2daa70d41b2aa9dbbc5ca921b0f (diff) | |
download | android-node-v8-f65b4afaea14446c4b313595c03b737ab710c124.tar.gz android-node-v8-f65b4afaea14446c4b313595c03b737ab710c124.tar.bz2 android-node-v8-f65b4afaea14446c4b313595c03b737ab710c124.zip |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h index fb94bdc307..442056eaac 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_; |