Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 3e3c41114929b32ec08354f9359e7b18b4b4a2c8..8febe70bee3dc69d38655aa9b523e0880e27f36b 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -1047,8 +1047,11 @@ class Parser : public ParserBase<ParserTraits> { |
ZoneList<const AstRawString*>* names, bool* ok); |
static void RewriteDestructuringAssignment( |
- Parser* parser, RewritableAssignmentExpression* expr, Scope* Scope, |
- bool* ok); |
+ Parser* parser, RewritableAssignmentExpression* expr, Scope* Scope); |
+ |
+ static Expression* RewriteDestructuringAssignment(Parser* parser, |
+ Assignment* assignment, |
+ Scope* scope); |
void set_initializer_position(int pos) { initializer_position_ = pos; } |
@@ -1144,10 +1147,9 @@ class Parser : public ParserBase<ParserTraits> { |
// Initialize the components of a for-in / for-of statement. |
- void InitializeForEachStatement(ForEachStatement* stmt, |
- Expression* each, |
- Expression* subject, |
- Statement* body); |
+ void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, |
+ Expression* subject, Statement* body, |
+ bool is_destructuring); |
Statement* DesugarLexicalBindingsInForStatement( |
Scope* inner_scope, bool is_const, ZoneList<const AstRawString*>* names, |
ForStatement* loop, Statement* init, Expression* cond, Statement* next, |