mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
@ -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 New Issue
Block a user