mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 15:25:08 +00:00
LibJS: Fix semicolon insertion
This commit is contained in:
parent
07f838dc4e
commit
19cdda8000
1 changed files with 2 additions and 2 deletions
|
@ -1088,8 +1088,8 @@ void Parser::consume_or_insert_semicolon()
|
||||||
// ...token is preceeded by one or more newlines
|
// ...token is preceeded by one or more newlines
|
||||||
if (m_parser_state.m_current_token.trivia().contains('\n'))
|
if (m_parser_state.m_current_token.trivia().contains('\n'))
|
||||||
return;
|
return;
|
||||||
// ...token is a closing paren
|
// ...token is a closing curly brace
|
||||||
if (match(TokenType::ParenClose))
|
if (match(TokenType::CurlyClose))
|
||||||
return;
|
return;
|
||||||
// ...token is eof
|
// ...token is eof
|
||||||
if (match(TokenType::Eof))
|
if (match(TokenType::Eof))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue