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:
parent
0ff9d7e189
commit
1fadde2483
Notes:
sideshowbarker
2024-07-19 05:46:18 +09:00
Author: https://github.com/mattco98
Commit: 1fadde2483
Pull-request: https://github.com/SerenityOS/serenity/pull/2523
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
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue