Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-11-12 09:30:02 +0300
committerGus Caplan <me@gus.host>2020-05-14 20:39:23 +0300
commit5ae5262f448295e314393dad4c491259793cea3f (patch)
tree412178bf21e1eb5e5727fcad1744233c0931ef5e /src/node_options.h
parent241ed44a0b06db45c97681c164fc1098e7c9f0d2 (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.h')
-rw-r--r--src/node_options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h
index 539e41e67ac..bbe5617cdc8 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -186,6 +186,7 @@ class PerIsolateOptions : public Options {
bool no_node_snapshot = false;
bool report_uncaught_exception = false;
bool report_on_signal = false;
+ bool experimental_top_level_await = false;
std::string report_signal = "SIGUSR2";
inline EnvironmentOptions* get_per_env_options();
void CheckOptions(std::vector<std::string>* errors) override;
@@ -418,6 +419,8 @@ class OptionsParser {
// An implied option is composed of the information on where to store a
// specific boolean value (if another specific option is encountered).
struct Implication {
+ OptionType type;
+ std::string name;
std::shared_ptr<BaseOptionField> target_field;
bool target_value;
};