mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix postfix expression parsing
This commit is contained in:
parent
391b6caebe
commit
819361c234
@ -1595,6 +1595,10 @@ parse_postfix_expression (void)
|
||||
|
||||
parse_left_hand_side_expression (); // push expr
|
||||
|
||||
if (lexer_prev_token ().type == TOK_NEWLINE)
|
||||
{
|
||||
goto cleanup;
|
||||
}
|
||||
skip_token ();
|
||||
if (token_is (TOK_DOUBLE_PLUS))
|
||||
{
|
||||
@ -1615,6 +1619,7 @@ parse_postfix_expression (void)
|
||||
lexer_save_token (TOK ());
|
||||
}
|
||||
|
||||
cleanup:
|
||||
STACK_CHECK_USAGE_LHS ();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user