mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibJS: Treat private identifier as divisible token
And also make sure private identifiers are correctly checked when synthesizing a binding pattern.
This commit is contained in:
parent
afde1821b5
commit
e751dcea43
4 changed files with 16 additions and 0 deletions
|
@ -498,6 +498,7 @@ bool Lexer::slash_means_division() const
|
|||
|| type == TokenType::NumericLiteral
|
||||
|| type == TokenType::ParenClose
|
||||
|| type == TokenType::PlusPlus
|
||||
|| type == TokenType::PrivateIdentifier
|
||||
|| type == TokenType::RegexLiteral
|
||||
|| type == TokenType::StringLiteral
|
||||
|| type == TokenType::TemplateLiteralEnd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue