Skip to content

Commit 52a3033

Browse files
committed
Minor fix in for-of statement parsing
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
1 parent 6a995e2 commit 52a3033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-core/parser/js/js-parser-statm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ parser_parse_for_statement_start (parser_context_t *context_p) /**< context */
12891289
#endif /* JERRY_ESNEXT */
12901290

12911291
lexer_next_token (context_p);
1292-
int options = is_for_in ? PARSE_EXPR : PARSE_EXPR_LEFT_HAND_SIDE;
1292+
int options = is_for_in ? PARSE_EXPR : PARSE_EXPR_NO_COMMA;
12931293
parser_parse_expression (context_p, options);
12941294

12951295
if (context_p->token.type != LEXER_RIGHT_PAREN)

0 commit comments

Comments
 (0)