diff options
Diffstat (limited to 'Libraries/LibJS/Parser.cpp')
-rw-r--r-- | Libraries/LibJS/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Parser.cpp b/Libraries/LibJS/Parser.cpp index e4fceb1461..18a1feecf3 100644 --- a/Libraries/LibJS/Parser.cpp +++ b/Libraries/LibJS/Parser.cpp @@ -1088,8 +1088,8 @@ void Parser::consume_or_insert_semicolon() // ...token is preceeded by one or more newlines if (m_parser_state.m_current_token.trivia().contains('\n')) return; - // ...token is a closing paren - if (match(TokenType::ParenClose)) + // ...token is a closing curly brace + if (match(TokenType::CurlyClose)) return; // ...token is eof if (match(TokenType::Eof)) |