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 /src/node_options.cc | |
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 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index 1e3659cd00c..40f8cf86902 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -349,7 +349,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { AddOption("--experimental-repl-await", "experimental await keyword support in REPL", &EnvironmentOptions::experimental_repl_await, - kAllowedInEnvironment); + kAllowedInEnvironment, + true); AddOption("--experimental-vm-modules", "experimental ES Module support in vm module", &EnvironmentOptions::experimental_vm_modules, |