@@ -12794,27 +12794,27 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
12794
12794
|interface|, given |object|'s [=default asynchronous iterator object/target=], |object|,
12795
12795
and |value|.
12796
12796
12797
- 1. Let |returnStepsPromise| be null.
12798
-
12799
12797
1. Let |ongoingPromise| be |object|'s [=default asynchronous iterator object/ongoing promise=].
12800
12798
12801
12799
1. If |ongoingPromise| is not null, then:
12802
12800
1. Let |afterOngoingPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}).
12803
12801
1. Let |onSettled| be [$CreateBuiltinFunction$](|returnSteps|, « »).
12804
12802
1. Perform [$PerformPromiseThen$](|ongoingPromise|, |onSettled|, |onSettled|,
12805
12803
|afterOngoingPromiseCapability|).
12806
- 1. Set |returnStepsPromise| to |afterOngoingPromiseCapability|.\[[Promise]].
12804
+ 1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to
12805
+ |afterOngoingPromiseCapability|.\[[Promise]].
12807
12806
12808
12807
1. Otherwise:
12809
- 1. Set |returnStepsPromise| to the result of running |returnSteps|.
12808
+ 1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to the result of
12809
+ running |returnSteps|.
12810
12810
12811
12811
1. Let |fulfillSteps| be the following steps:
12812
12812
1. Return [$CreateIterResultObject$](|value|, <emu-val>true</emu-val>).
12813
12813
12814
12814
1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »).
12815
12815
12816
- 1. Perform [$PerformPromiseThen$](|returnStepsPromise|, |onFulfilled|,
12817
- <emu-val>undefined</emu-val>, |returnPromiseCapability|).
12816
+ 1. Perform [$PerformPromiseThen$](|object|'s [=default asynchronous iterator object/ongoing
12817
+ promise=], |onFulfilled|, <emu-val>undefined</emu-val>, |returnPromiseCapability|).
12818
12818
12819
12819
1. Return |returnPromiseCapability|.\[[Promise]].
12820
12820
</div>
0 commit comments