From f65b4afaea14446c4b313595c03b737ab710c124 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 22 Feb 2019 21:01:22 +0100 Subject: worker: provide process.execArgv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/node_worker.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/node_worker.h') 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 wrap, const std::string& url, - std::shared_ptr per_isolate_opts); + std::shared_ptr per_isolate_opts, + std::vector&& 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 per_isolate_opts_; + std::vector exec_argv_; MultiIsolatePlatform* platform_; v8::Isolate* isolate_ = nullptr; bool profiler_idle_notifier_started_; -- cgit v1.2.3