summaryrefslogtreecommitdiff
path: root/Libraries/LibJS
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2020-06-07 11:02:42 -0700
committerAndreas Kling <kling@serenityos.org>2020-06-07 20:05:16 +0200
commit1fadde2483df7f8930c92138484cab3a4b604088 (patch)
tree392484894ca70fb89afca5532ead9aade0290166 /Libraries/LibJS
parent0ff9d7e1898c224033fde7b03ac9c92db893bfca (diff)
downloadserenity-1fadde2483df7f8930c92138484cab3a4b604088.zip
LibJS: Fix big int division lexing as UnterminatedRegexLiteral
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r--Libraries/LibJS/Lexer.cpp3
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