LibJS: Fix endless loop in string lexing

This commit is contained in:
Oriko 2020-03-13 23:07:47 +02:00 committed by Andreas Kling
parent b6e1c1b516
commit 2d7f4bea90

View file

@ -205,7 +205,7 @@ Token Lexer::next()
token_type = TokenType::NumericLiteral;
} else if (m_current_char == '"') {
consume();
while (m_current_char != '"') {
while (m_current_char != '"' && !is_eof()) {
consume();
}
consume();