diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-04-28 20:54:29 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-05-02 15:39:31 +0300 |
commit | dab15f69e3631355e53923dae44c7b25c3e32645 (patch) | |
tree | 910baf82e723439edbde5b9e32f3a0adb7bb6931 /src/node_options.cc | |
parent | e15d22c024aa09a6235be70f9b96b996d5a637f7 (diff) |
esm: graduate top-level-await to stable
Removes the experimental label in the docs and makes the
`--experimental-top-level-await` flag a no-op.
V8 has removed the harmony flag in V8 9.1 and consider the feature
stable, there's no reason to keep it experimental in Node.js.
PR-URL: https://github.com/nodejs/node/pull/42875
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index dae1ce1866f..8341724089a 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -700,14 +700,8 @@ PerIsolateOptionsParser::PerIsolateOptionsParser( kAllowedInEnvironment); Implies("--report-signal", "--report-on-signal"); - AddOption("--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"); - ImpliesNot("--no-harmony-top-level-await", "--experimental-top-level-await"); + AddOption( + "--experimental-top-level-await", "", NoOp{}, kAllowedInEnvironment); Insert(eop, &PerIsolateOptions::get_per_env_options); } |