@@ -243,6 +243,11 @@ bool config_experimental_modules = false;
243
243
// that is used by lib/vm.js
244
244
bool config_experimental_vm_modules = false ;
245
245
246
+ // Set in node.cc by ParseArgs when --experimental-repl-await is used.
247
+ // Used in node_config.cc to set a constant on process.binding('config')
248
+ // that is used by lib/repl.js.
249
+ bool config_experimental_repl_await = false ;
250
+
246
251
// Set in node.cc by ParseArgs when --loader is used.
247
252
// Used in node_config.cc to set a constant on process.binding('config')
248
253
// that is used by lib/internal/bootstrap/node.js
@@ -3463,6 +3468,10 @@ static void PrintHelp() {
3463
3468
#if defined(NODE_HAVE_I18N_SUPPORT)
3464
3469
" --experimental-modules experimental ES Module support\n "
3465
3470
" and caching modules\n "
3471
+ #endif // defined(NODE_HAVE_I18N_SUPPORT)
3472
+ " --experimental-repl-await experimental await keyword support\n "
3473
+ " in REPL\n "
3474
+ #if defined(NODE_HAVE_I18N_SUPPORT)
3466
3475
" --experimental-vm-modules experimental ES Module support\n "
3467
3476
" in vm module\n "
3468
3477
#endif // defined(NODE_HAVE_I18N_SUPPORT)
@@ -3622,6 +3631,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
3622
3631
// Node options, sorted in `node --help` order for ease of comparison.
3623
3632
" --enable-fips" ,
3624
3633
" --experimental-modules" ,
3634
+ " --experimental-repl-await" ,
3625
3635
" --experimental-vm-modules" ,
3626
3636
" --expose-http2" , // keep as a non-op through v9.x
3627
3637
" --force-fips" ,
@@ -3819,6 +3829,8 @@ static void ParseArgs(int* argc,
3819
3829
new_v8_argc += 1 ;
3820
3830
} else if (strcmp (arg, " --experimental-vm-modules" ) == 0 ) {
3821
3831
config_experimental_vm_modules = true ;
3832
+ } else if (strcmp (arg, " --experimental-repl-await" ) == 0 ) {
3833
+ config_experimental_repl_await = true ;
3822
3834
} else if (strcmp (arg, " --loader" ) == 0 ) {
3823
3835
const char * module = argv[index + 1 ];
3824
3836
if (!config_experimental_modules) {
0 commit comments