Skip to content

Commit

Permalink
Update CreateIterResultObject → CreateIteratorResultObject
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 22, 2024
1 parent f33a06a commit e7b2fe1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -12554,7 +12554,7 @@ must be {{%IteratorPrototype%}}.
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|array|, "<code>1</code>", |value|).
1. |result| is |array|.
</dl>
1. Return [$CreateIterResultObject$](|result|, <emu-val>false</emu-val>).
1. Return [$CreateIteratorResultObject$](|result|, <emu-val>false</emu-val>).
</div>

<div algorithm="to invoke the next property of iterators">
Expand All @@ -12579,7 +12579,7 @@ must be {{%IteratorPrototype%}}.
1. Let |values| be |object|'s [=default iterator object/target=]'s [=value pairs to iterate over=].
1. Let |len| be the length of |values|.
1. If |index| is greater than or equal to |len|, then
return <a abstract-op>CreateIterResultObject</a>(<emu-val>undefined</emu-val>, <emu-val>true</emu-val>).
return <a abstract-op>CreateIteratorResultObject</a>(<emu-val>undefined</emu-val>, <emu-val>true</emu-val>).
1. Let |pair| be the entry in |values| at index |index|.
1. Set |object|'s index to |index| + 1.
1. Return the [=iterator result=] for |pair| and |kind|.
Expand Down Expand Up @@ -12771,7 +12771,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1. Let |nextSteps| be the following steps:
1. Let |nextPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}).
1. If |object|'s [=default asynchronous iterator object/is finished=] is true, then:
1. Let |result| be [$CreateIterResultObject$](<emu-val>undefined</emu-val>,
1. Let |result| be [$CreateIteratorResultObject$](<emu-val>undefined</emu-val>,
<emu-val>true</emu-val>).
1. Perform [=!=] [$Call$](|nextPromiseCapability|.\[[Resolve]],
<emu-val>undefined</emu-val>, « |result| »).
Expand All @@ -12785,7 +12785,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
null.
1. If |next| is [=end of iteration=], then:
1. Set |object|'s [=default asynchronous iterator object/is finished=] to true.
1. Return [$CreateIterResultObject$](<emu-val>undefined</emu-val>,
1. Return [$CreateIteratorResultObject$](<emu-val>undefined</emu-val>,
<emu-val>true</emu-val>).
1. Otherwise, if |interface| has a [=pair asynchronously iterable declaration=]:
1. Assert: |next| is a [=value pair=].
Expand All @@ -12794,7 +12794,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1. Assert: |interface| has a [=value asynchronously iterable declaration=].
1. Assert: |next| is a value of the type that appears in the declaration.
1. Let |value| be |next|, [=converted to a JavaScript value=].
1. Return [$CreateIterResultObject$](|value|, <emu-val>false</emu-val>).
1. Return [$CreateIteratorResultObject$](|value|, <emu-val>false</emu-val>).
1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »).
1. Let |rejectSteps| be the following steps, given |reason|:
1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to
Expand Down Expand Up @@ -12861,7 +12861,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1. Let |returnSteps| be the following steps:
1. Let |returnPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}).
1. If |object|'s [=default asynchronous iterator object/is finished=] is true, then:
1. Let |result| be [$CreateIterResultObject$](|value|, <emu-val>true</emu-val>).
1. Let |result| be [$CreateIteratorResultObject$](|value|, <emu-val>true</emu-val>).
1. Perform [=!=] [$Call$](|returnPromiseCapability|.\[[Resolve]],
<emu-val>undefined</emu-val>, « |result| »).
1. Return |returnPromiseCapability|.\[[Promise]].
Expand All @@ -12885,7 +12885,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
running |returnSteps|.

1. Let |fulfillSteps| be the following steps:
1. Return [$CreateIterResultObject$](|value|, <emu-val>true</emu-val>).
1. Return [$CreateIteratorResultObject$](|value|, <emu-val>true</emu-val>).

1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »).

Expand Down Expand Up @@ -12954,7 +12954,7 @@ the <code>entries</code> property.
1. If |kind| is "<code>key</code>", let |result| be |key|.
1. Else if |kind| is "<code>value</code>", let |result| be |value|.
1. Else, let |result| be [$CreateArrayFromList$](« |key|, |value| »).
1. Perform [=?=] [$GeneratorYield$]([$CreateIterResultObject$](|result|, <emu-val>false</emu-val>)).
1. Perform [=?=] [$GeneratorYield$]([$CreateIteratorResultObject$](|result|, <emu-val>false</emu-val>)).

Note: The [=map/size=] of |map|, and the order of its entries,
might have changed while execution of this abstract operation
Expand Down Expand Up @@ -13263,7 +13263,7 @@ the <code class="idl">values</code> property.
1. Set |entry| to be |entry| [=converted to a JavaScript value=].
1. If |kind| is "<code>value</code>", let |result| be |entry|.
1. Else, let |result| be [$CreateArrayFromList$](« |entry|, |entry| »).
1. Perform [=?=] [$GeneratorYield$]([$CreateIterResultObject$](|result|, <emu-val>false</emu-val>)).
1. Perform [=?=] [$GeneratorYield$]([$CreateIteratorResultObject$](|result|, <emu-val>false</emu-val>)).

Note: The [=set/size=] of |set|, and the order of its entries,
might have changed while execution of this abstract operation
Expand Down

0 comments on commit e7b2fe1

Please sign in to comment.