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

Unified Diff: src/preparser.h

Issue 1033823002: [es6] emit error when for-in loop declarations are initialized in strict mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: delete decl_props Created 5 years, 8 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
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 92c762d36bcbbe4930bfac5fdeee1b1cae197a26..35b65853b3f553560df54e873043ea26efc2d128 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -162,9 +162,6 @@ class ParserBase : public Traits {
kForStatement
};
- // If a list of variable declarations includes any initializers.
- enum VariableDeclarationProperties { kHasInitializers, kHasNoInitializers };
-
class Checkpoint;
class ObjectLiteralCheckerBase;
@@ -1588,8 +1585,8 @@ class PreParser : public ParserBase<PreParserTraits> {
Statement ParseVariableStatement(VariableDeclarationContext var_context,
bool* ok);
Statement ParseVariableDeclarations(VariableDeclarationContext var_context,
- VariableDeclarationProperties* decl_props,
int* num_decl,
+ Scanner::Location* first_initializer_loc,
bool* ok);
Statement ParseExpressionOrLabelledStatement(bool* ok);
Statement ParseIfStatement(bool* ok);
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698