From e7b2fe1d1d8c9b73bdc9c22bfe72460af98e26c9 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 22 Aug 2024 09:58:00 +0900 Subject: [PATCH] =?UTF-8?q?Update=20CreateIterResultObject=20=E2=86=92=20C?= =?UTF-8?q?reateIteratorResultObject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follows https://github.com/tc39/ecma262/commit/4bc2d8dedb662edb8870b13d5b35d01ff5312ee9. --- index.bs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.bs b/index.bs index 2aaaa217..aa214732 100644 --- a/index.bs +++ b/index.bs @@ -12554,7 +12554,7 @@ must be {{%IteratorPrototype%}}. 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|array|, "1", |value|). 1. |result| is |array|. - 1. Return [$CreateIterResultObject$](|result|, false). + 1. Return [$CreateIteratorResultObject$](|result|, false).
@@ -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 CreateIterResultObject(undefined, true). + return CreateIteratorResultObject(undefined, true). 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|. @@ -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$](undefined, + 1. Let |result| be [$CreateIteratorResultObject$](undefined, true). 1. Perform [=!=] [$Call$](|nextPromiseCapability|.\[[Resolve]], undefined, « |result| »). @@ -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$](undefined, + 1. Return [$CreateIteratorResultObject$](undefined, true). 1. Otherwise, if |interface| has a [=pair asynchronously iterable declaration=]: 1. Assert: |next| is a [=value pair=]. @@ -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|, false). + 1. Return [$CreateIteratorResultObject$](|value|, false). 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 @@ -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|, true). + 1. Let |result| be [$CreateIteratorResultObject$](|value|, true). 1. Perform [=!=] [$Call$](|returnPromiseCapability|.\[[Resolve]], undefined, « |result| »). 1. Return |returnPromiseCapability|.\[[Promise]]. @@ -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|, true). + 1. Return [$CreateIteratorResultObject$](|value|, true). 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »). @@ -12954,7 +12954,7 @@ the entries property. 1. If |kind| is "key", let |result| be |key|. 1. Else if |kind| is "value", let |result| be |value|. 1. Else, let |result| be [$CreateArrayFromList$](« |key|, |value| »). - 1. Perform [=?=] [$GeneratorYield$]([$CreateIterResultObject$](|result|, false)). + 1. Perform [=?=] [$GeneratorYield$]([$CreateIteratorResultObject$](|result|, false)). Note: The [=map/size=] of |map|, and the order of its entries, might have changed while execution of this abstract operation @@ -13263,7 +13263,7 @@ the values property. 1. Set |entry| to be |entry| [=converted to a JavaScript value=]. 1. If |kind| is "value", let |result| be |entry|. 1. Else, let |result| be [$CreateArrayFromList$](« |entry|, |entry| »). - 1. Perform [=?=] [$GeneratorYield$]([$CreateIterResultObject$](|result|, false)). + 1. Perform [=?=] [$GeneratorYield$]([$CreateIteratorResultObject$](|result|, false)). Note: The [=set/size=] of |set|, and the order of its entries, might have changed while execution of this abstract operation