mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibJS: Allow yielding a class
This commit is contained in:
parent
19582ccad8
commit
4989e79c45
1 changed files with 1 additions and 1 deletions
|
@ -1630,7 +1630,7 @@ NonnullRefPtr<YieldExpression> Parser::parse_yield_expression()
|
|||
yield_from = true;
|
||||
}
|
||||
|
||||
if (yield_from || match_expression())
|
||||
if (yield_from || match_expression() || match(TokenType::Class))
|
||||
argument = parse_expression(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue