diff options
author | hemanth.hm <hemanth.hm@gmail.com> | 2021-07-08 21:33:54 +0300 |
---|---|---|
committer | Guy Bedford <guybedford@gmail.com> | 2021-07-17 01:14:26 +0300 |
commit | 14b26e07bd90c30bd6a7df0f3cefd35698e24c8d (patch) | |
tree | 37967accc40ee9d9ae4389636d0762f5a2354928 /doc/api/cli.md | |
parent | 7dbc0f74d011739db0165b81cc2ac78b36c3d100 (diff) |
repl: enable --experimental-repl-await /w opt-out
Unflags top-level await for the REPL by enabling
--experimental-repl-await by default. Opt-out is
supported via --no-experimental-repl-await.
PR-URL: https://github.com/nodejs/node/pull/34733
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r-- | doc/api/cli.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 1a2d444898d..6c240ffcca4 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -279,12 +279,11 @@ added: v11.8.0 Use the specified file as a security policy. -### `--experimental-repl-await` +### `--no-experimental-repl-await` <!-- YAML -added: v10.0.0 ---> - -Enable experimental top-level `await` keyword support in REPL. +added: REPLACEME + --> + Use this flag to disable top-level await in REPL. ### `--experimental-specifier-resolution=mode` <!-- YAML @@ -1401,7 +1400,6 @@ Node.js options that are allowed are: * `--experimental-loader` * `--experimental-modules` * `--experimental-policy` -* `--experimental-repl-await` * `--experimental-specifier-resolution` * `--experimental-top-level-await` * `--experimental-vm-modules` @@ -1423,6 +1421,7 @@ Node.js options that are allowed are: * `--max-http-header-size` * `--napi-modules` * `--no-deprecation` +* `--no-experimental-repl-await` * `--no-force-async-hooks-checks` * `--no-warnings` * `--node-memory-debug` |