@@ -243,6 +243,11 @@ bool config_experimental_modules = false;
243243// that is used by lib/vm.js
244244bool config_experimental_vm_modules = false ;
245245
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+
246251// Set in node.cc by ParseArgs when --loader is used.
247252// Used in node_config.cc to set a constant on process.binding('config')
248253// that is used by lib/internal/bootstrap/node.js
@@ -3463,6 +3468,10 @@ static void PrintHelp() {
34633468#if defined(NODE_HAVE_I18N_SUPPORT)
34643469 " --experimental-modules experimental ES Module support\n "
34653470 " 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)
34663475 " --experimental-vm-modules experimental ES Module support\n "
34673476 " in vm module\n "
34683477#endif // defined(NODE_HAVE_I18N_SUPPORT)
@@ -3622,6 +3631,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
36223631 // Node options, sorted in `node --help` order for ease of comparison.
36233632 " --enable-fips" ,
36243633 " --experimental-modules" ,
3634+ " --experimental-repl-await" ,
36253635 " --experimental-vm-modules" ,
36263636 " --expose-http2" , // keep as a non-op through v9.x
36273637 " --force-fips" ,
@@ -3819,6 +3829,8 @@ static void ParseArgs(int* argc,
38193829 new_v8_argc += 1 ;
38203830 } else if (strcmp (arg, " --experimental-vm-modules" ) == 0 ) {
38213831 config_experimental_vm_modules = true ;
3832+ } else if (strcmp (arg, " --experimental-repl-await" ) == 0 ) {
3833+ config_experimental_repl_await = true ;
38223834 } else if (strcmp (arg, " --loader" ) == 0 ) {
38233835 const char * module = argv[index + 1 ];
38243836 if (!config_experimental_modules) {
0 commit comments