Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index ab9d6b7e5b00b75c452454b6d35ac28a7ccc04fe..c5bf0d977708df914299099f36f197a0e5b55eca 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3203,7 +3203,7 @@ Statement* Parser::ParseForStatement(ZoneList<const AstRawString*>* labels, |
Scanner::Location lhs_location = scanner()->peek_location(); |
Expression* expression = ParseExpression(false, CHECK_OK); |
ForEachStatement::VisitMode mode; |
- bool accept_OF = expression->AsVariableProxy(); |
+ bool accept_OF = expression->IsVariableProxy(); |
if (CheckInOrOf(accept_OF, &mode)) { |
expression = this->CheckAndRewriteReferenceExpression( |