Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 3fa6b27451d3db083677117ede77cd0024ad7a8d..29d47b478f509577488dacaccd5979e2635d2cef 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3112,7 +3112,7 @@ void Parser::InitializeForEachStatement(ForEachStatement* stmt, |
body = block; |
each = factory()->NewVariableProxy(temp); |
} |
- stmt->Initialize(each, subject, body); |
+ stmt->AsForInStatement()->Initialize(each, subject, body); |
} |
} |
@@ -3169,8 +3169,8 @@ void Parser::InitializeForOfStatement(ForOfStatement* for_of, Expression* each, |
} |
} |
- for_of->Initialize(each, iterable, body, iterator, assign_iterator, |
- next_result, result_done, assign_each); |
+ for_of->Initialize(body, iterator, assign_iterator, next_result, result_done, |
+ assign_each); |
} |
Statement* Parser::DesugarLexicalBindingsInForStatement( |