mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05: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
Reference in a new issue