summaryrefslogtreecommitdiff
path: root/deps/v8/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/parser.h')
-rw-r--r--deps/v8/src/parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/src/parser.h b/deps/v8/src/parser.h
index c3a7edfd9c..68a74b78a9 100644
--- a/deps/v8/src/parser.h
+++ b/deps/v8/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