mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Fix endless loop in string lexing
This commit is contained in:
parent
b6e1c1b516
commit
2d7f4bea90
Notes:
sideshowbarker
2024-07-19 08:19:23 +09:00
Author: https://github.com/oriko1010
Commit: 2d7f4bea90
Pull-request: https://github.com/SerenityOS/serenity/pull/1435
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
Add a link
Reference in a new issue