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

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: Update error message, add fixes for let decls 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 08963c942540f05f97a1893a5166b243522a56d7..8603ab69b32e29fc1a0ddd282f0387c0b422c1d1 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -1596,6 +1596,7 @@ class PreParser : public ParserBase<PreParserTraits> {
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);

Powered by Google App Engine
This is Rietveld 408576698