diff --git a/src/libjsparser/parser.c b/src/libjsparser/parser.c index edaf8dc91..0dbceecf5 100644 --- a/src/libjsparser/parser.c +++ b/src/libjsparser/parser.c @@ -2552,7 +2552,7 @@ plain_for: skip_newlines (); if (!token_is (TOK_SEMICOLON)) { - parse_assignment_expression (); + parse_expression (); next_token_must_be (TOK_SEMICOLON); } else @@ -2570,7 +2570,7 @@ plain_for: skip_newlines (); if (!token_is (TOK_CLOSE_PAREN)) { - parse_assignment_expression (); + parse_expression (); STACK_DROP (IDX, 1); next_token_must_be (TOK_CLOSE_PAREN); }