diff options
author | Gus Caplan <me@gus.host> | 2019-11-12 09:30:02 +0300 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2020-05-14 20:39:23 +0300 |
commit | 5ae5262f448295e314393dad4c491259793cea3f (patch) | |
tree | 412178bf21e1eb5e5727fcad1744233c0931ef5e /src/node_options.cc | |
parent | 241ed44a0b06db45c97681c164fc1098e7c9f0d2 (diff) |
src: add support for TLA
PR-URL: https://github.com/nodejs/node/pull/30370
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index 3b9142c19e9..b3e7f403b05 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -593,6 +593,13 @@ PerIsolateOptionsParser::PerIsolateOptionsParser( kAllowedInEnvironment); Implies("--report-signal", "--report-on-signal"); + AddOption("--experimental-top-level-await", + "enable experimental support for ECMAScript Top-Level Await", + &PerIsolateOptions::experimental_top_level_await); + AddOption("--harmony-top-level-await", "", V8Option{}); + Implies("--experimental-top-level-await", "--harmony-top-level-await"); + Implies("--harmony-top-level-await", "--experimental-top-level-await"); + Insert(eop, &PerIsolateOptions::get_per_env_options); } |