mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibJS: Handle "for" statements with empty initializer and updater
This commit is contained in:
@@ -612,7 +612,7 @@ NonnullRefPtr<ForStatement> Parser::parse_for_statement()
|
||||
|
||||
RefPtr<Expression> update;
|
||||
switch (m_current_token.type()) {
|
||||
case TokenType::Semicolon:
|
||||
case TokenType::ParenClose:
|
||||
break;
|
||||
default:
|
||||
update = parse_expression(0);
|
||||
|
||||
Reference in New Issue
Block a user