summaryrefslogtreecommitdiff
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/api/worker_threads.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 54bd66a6ea..8d4c703f48 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -428,7 +428,9 @@ if (isMainThread) {
not automatically be piped through to `process.stderr` in the parent.
* `execArgv` {string[]} List of node CLI options passed to the worker.
V8 options (such as `--max-old-space-size`) and options that affect the
- process (such as `--title`) are not supported.
+ process (such as `--title`) are not supported. If set, this will be provided
+ as [`process.execArgv`][] inside the worker. By default, options will be
+ inherited from the parent thread.
### Event: 'error'
<!-- YAML
@@ -582,6 +584,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
[`process.abort()`]: process.html#process_process_abort
[`process.chdir()`]: process.html#process_process_chdir_directory
[`process.env`]: process.html#process_process_env
+[`process.execArgv`]: process.html#process_process_execargv
[`process.exit()`]: process.html#process_process_exit_code
[`process.stderr`]: process.html#process_process_stderr
[`process.stdin`]: process.html#process_process_stdin