summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-02-22 21:01:22 +0100
committerAnna Henningsen <anna@addaleax.net>2019-03-02 13:16:35 +0100
commitf65b4afaea14446c4b313595c03b737ab710c124 (patch)
tree8c424301f605bcc6f0cd715c0822adb75c9f309f /src/env-inl.h
parentb8018f407b2ae2daa70d41b2aa9dbbc5ca921b0f (diff)
downloadandroid-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/env-inl.h')
-rw-r--r--src/env-inl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index 824b7529a9..b233d2fddf 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -605,6 +605,10 @@ inline std::shared_ptr<EnvironmentOptions> Environment::options() {
return options_;
}
+inline const std::vector<std::string>& Environment::exec_argv() {
+ return exec_argv_;
+}
+
inline std::shared_ptr<HostPort> Environment::inspector_host_port() {
return inspector_host_port_;
}