mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibJS: Allow yielding a class
This commit is contained in:
@@ -1630,7 +1630,7 @@ NonnullRefPtr<YieldExpression> Parser::parse_yield_expression()
|
|||||||
yield_from = true;
|
yield_from = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (yield_from || match_expression())
|
if (yield_from || match_expression() || match(TokenType::Class))
|
||||||
argument = parse_expression(0);
|
argument = parse_expression(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user