mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibJS: Allow yielding a class
This commit is contained in:
parent
19582ccad8
commit
4989e79c45
Notes:
sideshowbarker
2024-07-18 05:36:46 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/4989e79c456 Pull-request: https://github.com/SerenityOS/serenity/pull/9085 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/linusg ✅ Reviewed-by: https://github.com/trflynn89
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…
Reference in a new issue