Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index c3a7edfd9cbe46d8f7445fb631d551c06f23bd88..68a74b78a9addff4dbb3b5532fa87d2a93c83c6a 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -438,6 +438,9 @@ class Parser BASE_EMBEDDED { |
bool allow_harmony_scoping() { return scanner().HarmonyScoping(); } |
bool allow_generators() const { return allow_generators_; } |
bool allow_for_of() const { return allow_for_of_; } |
+ bool allow_harmony_numeric_literals() { |
+ return scanner().HarmonyNumericLiterals(); |
+ } |
void set_allow_natives_syntax(bool allow) { allow_natives_syntax_ = allow; } |
void set_allow_lazy(bool allow) { allow_lazy_ = allow; } |
@@ -447,6 +450,9 @@ class Parser BASE_EMBEDDED { |
} |
void set_allow_generators(bool allow) { allow_generators_ = allow; } |
void set_allow_for_of(bool allow) { allow_for_of_ = allow; } |
+ void set_allow_harmony_numeric_literals(bool allow) { |
+ scanner().SetHarmonyNumericLiterals(allow); |
+ } |
// Parses the source code represented by the compilation info and sets its |
// function literal. Returns false (and deallocates any allocated AST |