Minor fix in for-of statement parsing (#4814)

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka robert.sipka@h-lab.eu
This commit is contained in:
Robert Sipka
2021-11-02 19:12:30 +01:00
committed by GitHub
parent 6a995e2887
commit 7ea0000ee0
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1289,7 +1289,7 @@ parser_parse_for_statement_start (parser_context_t *context_p) /**< context */
#endif /* JERRY_ESNEXT */
lexer_next_token (context_p);
int options = is_for_in ? PARSE_EXPR : PARSE_EXPR_LEFT_HAND_SIDE;
int options = is_for_in ? PARSE_EXPR : PARSE_EXPR_NO_COMMA;
parser_parse_expression (context_p, options);
if (context_p->token.type != LEXER_RIGHT_PAREN)