File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -48676,24 +48676,19 @@ <h1>
48676
48676
<emu-alg>
48677
48677
1. Assert: _generator_.[[AsyncGeneratorState]] is ~draining-queue~.
48678
48678
1. Let _queue_ be _generator_.[[AsyncGeneratorQueue]].
48679
- 1. If _queue_ is empty, then
48680
- 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
48681
- 1. Return ~unused~.
48682
- 1. Let _done_ be *false*.
48683
- 1. Repeat, while _done_ is *false*,
48679
+ 1. Repeat,
48680
+ 1. If _queue_ is empty, then
48681
+ 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
48682
+ 1. Return ~unused~.
48684
48683
1. Let _next_ be the first element of _queue_.
48685
48684
1. Let _completion_ be Completion(_next_.[[Completion]]).
48686
48685
1. If _completion_ is a return completion, then
48687
48686
1. Perform AsyncGeneratorAwaitReturn(_generator_).
48688
- 1. Set _done_ to *true* .
48687
+ 1. Return ~unused~ .
48689
48688
1. Else,
48690
48689
1. If _completion_ is a normal completion, then
48691
48690
1. Set _completion_ to NormalCompletion(*undefined*).
48692
48691
1. Perform AsyncGeneratorCompleteStep(_generator_, _completion_, *true*).
48693
- 1. If _queue_ is empty, then
48694
- 1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
48695
- 1. Set _done_ to *true*.
48696
- 1. Return ~unused~.
48697
48692
</emu-alg>
48698
48693
</emu-clause>
48699
48694
You can’t perform that action at this time.
0 commit comments