Skip to content

Commit 201852b

Browse files
committed
fixup
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
1 parent 3640cd7 commit 201852b

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎configure.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@
13121312

13131313
# Reject the removed option before forwarding unknown arguments to GYP.
13141314
if any(arg.split('=', 1)[0] == '--v8-lite-mode' for arg in args):
1315-
parser.error('Node.js does not support V8 flag --v8-lite-mode.')
1315+
parser.error('Node.js does not support the --v8-lite-mode configure option.')
13161316

13171317
# Expand ~ in the install prefix now, it gets written to multiple files.
13181318
options.prefix = str(Path(options.prefix or '').expanduser())

‎doc/api/cli.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4745,7 +4745,8 @@ much before user code is run. For more information, see the [libuv threadpool do
47454745

47464746
V8 has its own set of CLI options. Supported V8 CLI options provided to `node`
47474747
are passed on to V8 to handle. Node.js rejects `--jitless` and `--lite-mode`
4748-
with exit code 9 because built-in functionality requires WebAssembly.
4748+
with exit code 9 because these modes are incompatible with built-in Node.js
4749+
functionality.
47494750
V8's options have _no stability guarantee_.
47504751
The V8 team themselves don't consider them to be part of their formal API,
47514752
and reserve the right to change them at any time. Likewise, they are not

‎doc/api/v8.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,9 @@ after the VM has started may result in unpredictable behavior, including
472472
crashes and data loss; or it may simply do nothing.
473473

474474
Attempting to enable `--jitless` or `--lite-mode` throws
475-
[`ERR_INVALID_ARG_VALUE`][] because Node.js requires WebAssembly. No flags from
476-
that call are applied. These modes cannot be enabled through this API, even if
475+
[`ERR_INVALID_ARG_VALUE`][] because these modes are incompatible with
476+
built-in Node.js functionality. No flags from that call are applied.
477+
These modes cannot be enabled through this API, even if
477478
they appear in `node --v8-options`.
478479

479480
The V8 options available for a version of Node.js may be determined by running

0 commit comments

Comments
 (0)