mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix if-else without braces
This commit is contained in:
parent
29c734d95d
commit
eeb497b84b
@ -3219,6 +3219,11 @@ parse_statement (void)
|
||||
STACK_DROP (toks, 1);
|
||||
parse_expression ();
|
||||
STACK_DROP (IDX, 1);
|
||||
skip_newlines ();
|
||||
if (!token_is (TOK_SEMICOLON))
|
||||
{
|
||||
lexer_save_token (TOK ());
|
||||
}
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user