From 1fadde2483df7f8930c92138484cab3a4b604088 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sun, 7 Jun 2020 11:02:42 -0700 Subject: [PATCH] LibJS: Fix big int division lexing as UnterminatedRegexLiteral --- Libraries/LibJS/Lexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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