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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PREPARSER_H 5 #ifndef V8_PREPARSER_H
6 #define V8_PREPARSER_H 6 #define V8_PREPARSER_H
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 Statement ParseStatement(bool* ok); 1589 Statement ParseStatement(bool* ok);
1590 Statement ParseSubStatement(bool* ok); 1590 Statement ParseSubStatement(bool* ok);
1591 Statement ParseFunctionDeclaration(bool* ok); 1591 Statement ParseFunctionDeclaration(bool* ok);
1592 Statement ParseClassDeclaration(bool* ok); 1592 Statement ParseClassDeclaration(bool* ok);
1593 Statement ParseBlock(bool* ok); 1593 Statement ParseBlock(bool* ok);
1594 Statement ParseVariableStatement(VariableDeclarationContext var_context, 1594 Statement ParseVariableStatement(VariableDeclarationContext var_context,
1595 bool* ok); 1595 bool* ok);
1596 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, 1596 Statement ParseVariableDeclarations(VariableDeclarationContext var_context,
1597 VariableDeclarationProperties* decl_props, 1597 VariableDeclarationProperties* decl_props,
1598 int* num_decl, 1598 int* num_decl,
1599 Scanner::Location* first_initializer_loc,
1599 bool* ok); 1600 bool* ok);
1600 Statement ParseExpressionOrLabelledStatement(bool* ok); 1601 Statement ParseExpressionOrLabelledStatement(bool* ok);
1601 Statement ParseIfStatement(bool* ok); 1602 Statement ParseIfStatement(bool* ok);
1602 Statement ParseContinueStatement(bool* ok); 1603 Statement ParseContinueStatement(bool* ok);
1603 Statement ParseBreakStatement(bool* ok); 1604 Statement ParseBreakStatement(bool* ok);
1604 Statement ParseReturnStatement(bool* ok); 1605 Statement ParseReturnStatement(bool* ok);
1605 Statement ParseWithStatement(bool* ok); 1606 Statement ParseWithStatement(bool* ok);
1606 Statement ParseSwitchStatement(bool* ok); 1607 Statement ParseSwitchStatement(bool* ok);
1607 Statement ParseDoWhileStatement(bool* ok); 1608 Statement ParseDoWhileStatement(bool* ok);
1608 Statement ParseWhileStatement(bool* ok); 1609 Statement ParseWhileStatement(bool* ok);
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
3163 *ok = false; 3164 *ok = false;
3164 return; 3165 return;
3165 } 3166 }
3166 has_seen_constructor_ = true; 3167 has_seen_constructor_ = true;
3167 return; 3168 return;
3168 } 3169 }
3169 } 3170 }
3170 } } // v8::internal 3171 } } // v8::internal
3171 3172
3172 #endif // V8_PREPARSER_H 3173 #endif // V8_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698