mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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: 4989e79c45
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;
|
yield_from = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (yield_from || match_expression())
|
if (yield_from || match_expression() || match(TokenType::Class))
|
||||||
argument = parse_expression(0);
|
argument = parse_expression(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue