mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05: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;
|
||||
} else if (m_current_char == '"') {
|
||||
consume();
|
||||
while (m_current_char != '"') {
|
||||
while (m_current_char != '"' && !is_eof()) {
|
||||
consume();
|
||||
}
|
||||
consume();
|
||||
|
|
Loading…
Add table
Reference in a new issue