Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: src/parsing/parser-base.h

Issue 1518873004: [es6] Support Function name inference in variable declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index 581015f5c9b88196869e988a16165481d66d3139..f0097cb0f217976c78af982a261bf40574d924f6 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -117,7 +117,8 @@ class ParserBase : public Traits {
allow_harmony_destructuring_assignment_(false),
allow_strong_mode_(false),
allow_legacy_const_(true),
- allow_harmony_do_expressions_(false) {}
+ allow_harmony_do_expressions_(false),
+ allow_harmony_function_name_(false) {}
#define ALLOW_ACCESSORS(name) \
bool allow_##name() const { return allow_##name##_; } \
@@ -135,6 +136,7 @@ class ParserBase : public Traits {
ALLOW_ACCESSORS(strong_mode);
ALLOW_ACCESSORS(legacy_const);
ALLOW_ACCESSORS(harmony_do_expressions);
+ ALLOW_ACCESSORS(harmony_function_name);
#undef ALLOW_ACCESSORS
uintptr_t stack_limit() const { return stack_limit_; }
@@ -923,6 +925,7 @@ class ParserBase : public Traits {
bool allow_strong_mode_;
bool allow_legacy_const_;
bool allow_harmony_do_expressions_;
+ bool allow_harmony_function_name_;
};

Powered by Google App Engine
This is Rietveld 408576698