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

Unified Diff: src/preparser.h

Issue 1007783002: Remove --harmony-scoping flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests moved Created 5 years, 9 months 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/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 6e2a9de575bf3d8c4b086a82829e3fb094733495..7f873bd12f1b856537af06cf0891b7d413f08161 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -100,7 +100,6 @@ class ParserBase : public Traits {
return allow_harmony_arrow_functions_;
}
bool allow_harmony_modules() const { return scanner()->HarmonyModules(); }
- bool allow_harmony_scoping() const { return scanner()->HarmonyScoping(); }
bool allow_harmony_numeric_literals() const {
return scanner()->HarmonyNumericLiterals();
}
@@ -130,9 +129,6 @@ class ParserBase : public Traits {
void set_allow_harmony_modules(bool allow) {
scanner()->SetHarmonyModules(allow);
}
- void set_allow_harmony_scoping(bool allow) {
- scanner()->SetHarmonyScoping(allow);
- }
void set_allow_harmony_numeric_literals(bool allow) {
scanner()->SetHarmonyNumericLiterals(allow);
}
@@ -2944,7 +2940,7 @@ ParserBase<Traits>::ParseArrowFunctionLiteral(int start_pos,
CHECK_OK);
}
- if (allow_harmony_scoping() && is_strict(language_mode()))
+ if (is_strict(language_mode()))
rossberg 2015/03/13 14:24:32 Can be merged, too
Dmitry Lomov (no reviews) 2015/03/13 14:51:29 Done.
this->CheckConflictingVarDeclarations(scope, CHECK_OK);
}

Powered by Google App Engine
This is Rietveld 408576698