diff options
author | Dan Fabulich <dan@fabulich.com> | 2020-05-21 11:22:53 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-05-23 18:06:25 +0300 |
commit | 842a895ebff5917edded3b283049dc0f8fbe4c64 (patch) | |
tree | ffeb14c98fa258558b8469432fd329b15a7e3c7e /src/node_options.cc | |
parent | 1acc14baf9ca1cc52f001fbe0453c2a540571c21 (diff) |
cli: support --experimental-top-level-await in NODE_OPTIONS
PR-URL: https://github.com/nodejs/node/pull/33495
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michaƫl Zasso <targos@protonmail.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 013c3ef825e..875c2e73001 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -599,7 +599,8 @@ PerIsolateOptionsParser::PerIsolateOptionsParser( AddOption("--experimental-top-level-await", "enable experimental support for ECMAScript Top-Level Await", - &PerIsolateOptions::experimental_top_level_await); + &PerIsolateOptions::experimental_top_level_await, + kAllowedInEnvironment); AddOption("--harmony-top-level-await", "", V8Option{}); Implies("--experimental-top-level-await", "--harmony-top-level-await"); Implies("--harmony-top-level-await", "--experimental-top-level-await"); |