mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
LibJS: Fix big int division lexing as UnterminatedRegexLiteral
This commit is contained in:
parent
0ff9d7e189
commit
1fadde2483
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue