Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhemanth.hm <hemanth.hm@gmail.com>2021-07-08 21:33:54 +0300
committerGuy Bedford <guybedford@gmail.com>2021-07-17 01:14:26 +0300
commit14b26e07bd90c30bd6a7df0f3cefd35698e24c8d (patch)
tree37967accc40ee9d9ae4389636d0762f5a2354928 /src/node_options.cc
parent7dbc0f74d011739db0165b81cc2ac78b36c3d100 (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.cc3
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,