diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-06-07 11:02:42 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-07 20:05:16 +0200 |
commit | 1fadde2483df7f8930c92138484cab3a4b604088 (patch) | |
tree | 392484894ca70fb89afca5532ead9aade0290166 /Libraries/LibJS | |
parent | 0ff9d7e1898c224033fde7b03ac9c92db893bfca (diff) | |
download | serenity-1fadde2483df7f8930c92138484cab3a4b604088.zip |
LibJS: Fix big int division lexing as UnterminatedRegexLiteral
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r-- | Libraries/LibJS/Lexer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibJS/Lexer.cpp b/Libraries/LibJS/Lexer.cpp index 23890cadb4..71ab328379 100644 --- a/Libraries/LibJS/Lexer.cpp +++ b/Libraries/LibJS/Lexer.cpp @@ -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 |