Skip to content

Commit b9bdb94

Browse files
JakobJingleheimermarco-ippolito
authored andcommittedMay 3, 2024
doc: update process.execArg example to be more useful
PR-URL: #52412 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
1 parent b2a3dce commit b9bdb94

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎doc/api/process.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1711,15 +1711,13 @@ the script name. These options are useful in order to spawn child processes with
17111711
the same execution environment as the parent.
17121712
17131713
```bash
1714-
node --harmony script.js --version
1714+
node --icu-data-dir=./foo --require ./bar.js script.js --version
17151715
```
17161716
17171717
Results in `process.execArgv`:
17181718
1719-
<!-- eslint-disable semi -->
1720-
1721-
```js
1722-
['--harmony']
1719+
```json
1720+
["--icu-data-dir=./foo", "--require", "./bar.js"]
17231721
```
17241722
17251723
And `process.argv`:

0 commit comments

Comments
 (0)
Please sign in to comment.