mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 06:07:34 +00:00
LibJS: Fix endless loop in string lexing
This commit is contained in:
parent
b6e1c1b516
commit
2d7f4bea90
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ Token Lexer::next()
|
||||||
token_type = TokenType::NumericLiteral;
|
token_type = TokenType::NumericLiteral;
|
||||||
} else if (m_current_char == '"') {
|
} else if (m_current_char == '"') {
|
||||||
consume();
|
consume();
|
||||||
while (m_current_char != '"') {
|
while (m_current_char != '"' && !is_eof()) {
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
consume();
|
consume();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue