From 32e88095ea8fcd4897b879807d7c58e12c62ceae Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Wed, 26 Jun 2024 15:24:00 -0700 Subject: [PATCH] Editorial: AsyncGeneratorAwaitReturn does not throw (#2683) --- spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec.html b/spec.html index 9fc41b4652..46b38e094b 100644 --- a/spec.html +++ b/spec.html @@ -48263,7 +48263,7 @@

%AsyncGeneratorPrototype%.return ( _value_ )

1. Let _state_ be _generator_.[[AsyncGeneratorState]]. 1. If _state_ is either ~suspended-start~ or ~completed~, then 1. Set _generator_.[[AsyncGeneratorState]] to ~awaiting-return~. - 1. Perform ! AsyncGeneratorAwaitReturn(_generator_). + 1. Perform AsyncGeneratorAwaitReturn(_generator_). 1. Else if _state_ is ~suspended-yield~, then 1. Perform AsyncGeneratorResume(_generator_, _completion_). 1. Else, @@ -48552,7 +48552,7 @@

AsyncGeneratorAwaitReturn ( _generator_: an AsyncGenerator, - ): either a normal completion containing ~unused~ or a throw completion + ): ~unused~

@@ -48609,7 +48609,7 @@

1. Let _completion_ be Completion(_next_.[[Completion]]). 1. If _completion_ is a return completion, then 1. Set _generator_.[[AsyncGeneratorState]] to ~awaiting-return~. - 1. Perform ! AsyncGeneratorAwaitReturn(_generator_). + 1. Perform AsyncGeneratorAwaitReturn(_generator_). 1. Set _done_ to *true*. 1. Else, 1. If _completion_ is a normal completion, then