From c82f3c9e80f0eeec4ae5b7aedd1183127abda4ad Mon Sep 17 00:00:00 2001 From: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:42:05 +0200 Subject: [PATCH] doc: update `process.execArg` example to be more useful PR-URL: https://github.com/nodejs/node/pull/52412 Reviewed-By: Antoine du Hamel Reviewed-By: Raz Luvaton --- doc/api/process.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index ef1aae1f12649f..1b009f21887c0b 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1711,15 +1711,13 @@ the script name. These options are useful in order to spawn child processes with the same execution environment as the parent. ```bash -node --harmony script.js --version +node --icu-data-dir=./foo --require ./bar.js script.js --version ``` Results in `process.execArgv`: - - -```js -['--harmony'] +```json +["--icu-data-dir=./foo", "--require", "./bar.js"] ``` And `process.argv`: