mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Allow absent of semicolon before '}' token
This commit is contained in:
parent
19d0690586
commit
5c6dbd1466
@ -3076,7 +3076,12 @@ insert_semicolon (void)
|
||||
lexer_save_token (TOK ());
|
||||
return;
|
||||
}
|
||||
if (!token_is (TOK_SEMICOLON))
|
||||
if (token_is (TOK_CLOSE_BRACE))
|
||||
{
|
||||
lexer_save_token (TOK ());
|
||||
return;
|
||||
}
|
||||
else if (!token_is (TOK_SEMICOLON))
|
||||
{
|
||||
EMIT_ERROR ("Expected either ';' or newline token");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user