LibJS: Prepare yield object before re-routing it through finally

This commit is contained in:
Hendiadyoin1 2024-05-18 17:25:43 +02:00 committed by Andreas Kling
commit 1de475b404
Notes: sideshowbarker 2024-07-16 22:54:10 +09:00
6 changed files with 102 additions and 14 deletions

View file

@ -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;