1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibJS: Fix big int division lexing as UnterminatedRegexLiteral

This commit is contained in:
Matthew Olsson 2020-06-07 11:02:42 -07:00 committed by Andreas Kling
parent 0ff9d7e189
commit 1fadde2483
Notes: sideshowbarker 2024-07-19 05:46:18 +09:00

View file

@ -247,7 +247,8 @@ bool Lexer::is_numeric_literal_start() const
bool Lexer::slash_means_division() const bool Lexer::slash_means_division() const
{ {
auto type = m_current_token.type(); auto type = m_current_token.type();
return type == TokenType::BoolLiteral return type == TokenType::BigIntLiteral
|| type == TokenType::BoolLiteral
|| type == TokenType::BracketClose || type == TokenType::BracketClose
|| type == TokenType::CurlyClose || type == TokenType::CurlyClose
|| type == TokenType::Identifier || type == TokenType::Identifier