mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Prepare yield object before re-routing it through finally
This commit is contained in:
parent
2447a25753
commit
1de475b404
Notes:
sideshowbarker
2024-07-16 22:54:10 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 1de475b404
Pull-request: https://github.com/SerenityOS/serenity/pull/24362
Issue: https://github.com/SerenityOS/serenity/issues/24356
6 changed files with 102 additions and 14 deletions
|
@ -59,6 +59,7 @@ public:
|
|||
[[nodiscard]] Value get(Operand) const;
|
||||
void set(Operand, Value);
|
||||
|
||||
Value do_yield(Value value, Optional<Label> continuation);
|
||||
void do_return(Value value)
|
||||
{
|
||||
reg(Register::return_value()) = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue