mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:48:12 +00:00
LibJS: Don't crash on broken promises in AsyncGenerator#return
See: https://github.com/tc39/ecma262/pull/2683
This commit is contained in:
parent
d1cb78c411
commit
e86d7cab06
4 changed files with 58 additions and 15 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
|
||||
void async_generator_enqueue(Completion, NonnullGCPtr<PromiseCapability>);
|
||||
ThrowCompletionOr<void> resume(VM&, Completion completion);
|
||||
ThrowCompletionOr<void> await_return();
|
||||
void await_return();
|
||||
void complete_step(Completion, bool done, Realm* realm = nullptr);
|
||||
void drain_queue();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue