File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49322,23 +49322,17 @@ <h1>
49322
49322
<emu-alg>
49323
49323
1. Assert: _generator_.[[AsyncGeneratorState]] is ~draining-queue~.
49324
49324
1. Let _queue_ be _generator_.[[AsyncGeneratorQueue]].
49325
- 1. If _queue_ is empty, then
49326
- 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
49327
- 1. Return ~unused~.
49328
- 1. Let _done_ be *false*.
49329
- 1. Repeat, while _done_ is *false*,
49325
+ 1. Repeat, while _queue_ is not empty,
49330
49326
1. Let _next_ be the first element of _queue_.
49331
49327
1. Let _completion_ be Completion(_next_.[[Completion]]).
49332
49328
1. If _completion_ is a return completion, then
49333
49329
1. Perform AsyncGeneratorAwaitReturn(_generator_).
49334
- 1. Set _done_ to *true* .
49330
+ 1. Return ~unused~ .
49335
49331
1. Else,
49336
49332
1. If _completion_ is a normal completion, then
49337
49333
1. Set _completion_ to NormalCompletion(*undefined*).
49338
49334
1. Perform AsyncGeneratorCompleteStep(_generator_, _completion_, *true*).
49339
- 1. If _queue_ is empty, then
49340
- 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
49341
- 1. Set _done_ to *true*.
49335
+ 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
49342
49336
1. Return ~unused~.
49343
49337
</emu-alg>
49344
49338
</emu-clause>
You can’t perform that action at this time.
0 commit comments