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/env-inl.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/env-inl.h')
-rw-r--r-- | src/env-inl.h | 4 |
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_; } |