Index: src/parser.cc |
=================================================================== |
--- src/parser.cc (revision 3485) |
+++ src/parser.cc (working copy) |
@@ -2657,6 +2657,9 @@ |
Expression* cond = NULL; |
if (peek() != Token::SEMICOLON) { |
cond = ParseExpression(true, CHECK_OK); |
+ if (cond && cond->AsCompareOperation()) { |
+ cond->AsCompareOperation()->set_is_for_loop_condition(); |
+ } |
} |
Expect(Token::SEMICOLON, CHECK_OK); |