1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00: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

View file

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