Skip to content

Commit e7b2fe1

Browse files
committed
Update CreateIterResultObject → CreateIteratorResultObject
Follows tc39/ecma262@4bc2d8d.
1 parent f33a06a commit e7b2fe1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.bs

+9-9
Original file line numberDiff line numberDiff line change
@@ -12554,7 +12554,7 @@ must be {{%IteratorPrototype%}}.
1255412554
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|array|, "<code>1</code>", |value|).
1255512555
1. |result| is |array|.
1255612556
</dl>
12557-
1. Return [$CreateIterResultObject$](|result|, <emu-val>false</emu-val>).
12557+
1. Return [$CreateIteratorResultObject$](|result|, <emu-val>false</emu-val>).
1255812558
</div>
1255912559

1256012560
<div algorithm="to invoke the next property of iterators">
@@ -12579,7 +12579,7 @@ must be {{%IteratorPrototype%}}.
1257912579
1. Let |values| be |object|'s [=default iterator object/target=]'s [=value pairs to iterate over=].
1258012580
1. Let |len| be the length of |values|.
1258112581
1. If |index| is greater than or equal to |len|, then
12582-
return <a abstract-op>CreateIterResultObject</a>(<emu-val>undefined</emu-val>, <emu-val>true</emu-val>).
12582+
return <a abstract-op>CreateIteratorResultObject</a>(<emu-val>undefined</emu-val>, <emu-val>true</emu-val>).
1258312583
1. Let |pair| be the entry in |values| at index |index|.
1258412584
1. Set |object|'s index to |index| + 1.
1258512585
1. Return the [=iterator result=] for |pair| and |kind|.
@@ -12771,7 +12771,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1277112771
1. Let |nextSteps| be the following steps:
1277212772
1. Let |nextPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}).
1277312773
1. If |object|'s [=default asynchronous iterator object/is finished=] is true, then:
12774-
1. Let |result| be [$CreateIterResultObject$](<emu-val>undefined</emu-val>,
12774+
1. Let |result| be [$CreateIteratorResultObject$](<emu-val>undefined</emu-val>,
1277512775
<emu-val>true</emu-val>).
1277612776
1. Perform [=!=] [$Call$](|nextPromiseCapability|.\[[Resolve]],
1277712777
<emu-val>undefined</emu-val>, « |result| »).
@@ -12785,7 +12785,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1278512785
null.
1278612786
1. If |next| is [=end of iteration=], then:
1278712787
1. Set |object|'s [=default asynchronous iterator object/is finished=] to true.
12788-
1. Return [$CreateIterResultObject$](<emu-val>undefined</emu-val>,
12788+
1. Return [$CreateIteratorResultObject$](<emu-val>undefined</emu-val>,
1278912789
<emu-val>true</emu-val>).
1279012790
1. Otherwise, if |interface| has a [=pair asynchronously iterable declaration=]:
1279112791
1. Assert: |next| is a [=value pair=].
@@ -12794,7 +12794,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1279412794
1. Assert: |interface| has a [=value asynchronously iterable declaration=].
1279512795
1. Assert: |next| is a value of the type that appears in the declaration.
1279612796
1. Let |value| be |next|, [=converted to a JavaScript value=].
12797-
1. Return [$CreateIterResultObject$](|value|, <emu-val>false</emu-val>).
12797+
1. Return [$CreateIteratorResultObject$](|value|, <emu-val>false</emu-val>).
1279812798
1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »).
1279912799
1. Let |rejectSteps| be the following steps, given |reason|:
1280012800
1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to
@@ -12861,7 +12861,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1286112861
1. Let |returnSteps| be the following steps:
1286212862
1. Let |returnPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}).
1286312863
1. If |object|'s [=default asynchronous iterator object/is finished=] is true, then:
12864-
1. Let |result| be [$CreateIterResultObject$](|value|, <emu-val>true</emu-val>).
12864+
1. Let |result| be [$CreateIteratorResultObject$](|value|, <emu-val>true</emu-val>).
1286512865
1. Perform [=!=] [$Call$](|returnPromiseCapability|.\[[Resolve]],
1286612866
<emu-val>undefined</emu-val>, « |result| »).
1286712867
1. Return |returnPromiseCapability|.\[[Promise]].
@@ -12885,7 +12885,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1288512885
running |returnSteps|.
1288612886

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

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

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

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

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

0 commit comments

Comments
 (0)