From ff66208f23076863c0800e95f9b0529fcc9df94c Mon Sep 17 00:00:00 2001 From: Wonho Shin Date: Thu, 6 Nov 2025 16:29:22 +0900 Subject: [PATCH 1/6] Add missing args for CreateBuiltinFunction --- index.bs | 88 ++++++++++++++++++++------------------------------------ 1 file changed, 31 insertions(+), 57 deletions(-) diff --git a/index.bs b/index.bs index fad8407f..b2d14400 100644 --- a/index.bs +++ b/index.bs @@ -8657,7 +8657,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] the result of performing them, given |value| if |T| is not {{undefined}}. Otherwise, let |result| be |value|. 1. Return |result|, [=converted to a JavaScript value=]. - 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|onFulfilledSteps|, « »): + 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|onFulfilledSteps|, 1, "", « »): 1. Let |onRejectedSteps| be the following steps given argument |R|: 1. Let |reason| be the result of [=converted to an IDL value|converting=] |R| to an IDL value of type {{any}}. @@ -8665,7 +8665,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] the result of performing them, given |reason|. Otherwise, let |result| be [=a promise rejected with=] |reason|. 1. Return |result|, [=converted to a JavaScript value=]. - 1. Let |onRejected| be [$CreateBuiltinFunction$](|onRejectedSteps|, « »): + 1. Let |onRejected| be [$CreateBuiltinFunction$](|onRejectedSteps|, 1, "", « »): 1. Let |constructor| be |promise|.\[[Promise]].\[[Realm]].\[[Intrinsics]].\[[{{%Promise%}}]]. 1. Let |newCapability| be [=?=] [$NewPromiseCapability$](|constructor|). @@ -8717,7 +8717,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] 1. If |rejected| is true, abort these steps. 1. Set |rejected| to true. 1. Perform |failureSteps| given |arg|. - 1. Let |rejectionHandler| be [$CreateBuiltinFunction$](|rejectionHandlerSteps|, « »): + 1. Let |rejectionHandler| be [$CreateBuiltinFunction$](|rejectionHandlerSteps|, 1, "", « »): 1. Let |total| be |promises|'s [=list/size=]. 1. If |total| is 0, then: 1. [=Queue a microtask=] to perform |successSteps| given « ». @@ -8730,7 +8730,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] 1. Set |result|[|promiseIndex|] to |arg|. 1. Set |fullfilledCount| to |fullfilledCount| + 1. 1. If |fullfilledCount| equals |total|, then perform |successSteps| given |result|. - 1. Let |fulfillmentHandler| be [$CreateBuiltinFunction$](|fulfillmentHandler|, « »): + 1. Let |fulfillmentHandler| be [$CreateBuiltinFunction$](|fulfillmentHandler|, 1, "", « »): 1. Perform [$PerformPromiseThen$](|promise|, |fulfillmentHandler|, |rejectionHandler|). 1. Set |index| to |index| + 1. @@ -11943,8 +11943,6 @@ default interfaces do not have such steps. 1. Let |constructorProto| be |realm|.\[[Intrinsics]].\[[{{%Function.prototype%}}]]. 1. If |I| inherits from some other interface |P|, then set |constructorProto| to the [=interface object=] of |P| in |realm|. - 1. Let |F| be CreateBuiltinFunction(|steps|, « \[[Unforgeables]] », - |realm|, |constructorProto|). 1. Let |unforgeables| be [$OrdinaryObjectCreate$](null). 1. [=Define the unforgeable regular operations=] of |I| on |unforgeables|, given |realm|. 1. [=Define the unforgeable regular attributes=] of |I| on |unforgeables|, given |realm|. @@ -11954,14 +11952,14 @@ default interfaces do not have such steps. of an interface with an unforgeable member use the same JavaScript function objects for [=attribute getters=], [=attribute setters=] and [=creating an operation function|operation functions=]. - 1. Perform SetFunctionName(|F|, |id|). 1. Let |length| be 0. 1. If |I| was declared with a [=constructor operation=], then 1. [=Compute the effective overload set=] for constructors with [=identifier=] |id| on [=interface=] |I| and with argument count 0, and let |S| be the result. 1. Set |length| to the length of the shortest argument list of the entries in |S|. - 1. Perform SetFunctionLength(|F|, |length|). + 1. Let |F| be CreateBuiltinFunction(|steps|, |length|, |id|, « \[[Unforgeables]] », + |realm|, |constructorProto|). 1. Let |proto| be the result of [=create an interface prototype object|creating an interface prototype object=] of [=interface=] |I| in |realm|. 1. Perform [=!=] DefinePropertyOrThrow(|F|, "prototype", @@ -12007,12 +12005,10 @@ implement the interface on which the 1. Assert: |O| is an object that [=implements=] |I|. 1. Assert: |O|.\[[Realm]] is |realm|. 1. Return |O|. - 1. Let |F| be CreateBuiltinFunction(|steps|, « », |realm|). - 1. Perform SetFunctionName(|F|, |id|). 1. [=Compute the effective overload set=] for legacy factory functions with [=identifier=] |id| on [=interface=] |I| and with argument count 0, and let |S| be the result. 1. Let |length| be the length of the shortest argument list of the entries in |S|. - 1. Perform SetFunctionLength(|F|, |length|). + 1. Let |F| be CreateBuiltinFunction(|steps|, |length|, |id|, « », |realm|). 1. Let |proto| be the [=interface prototype object=] of [=interface=] |I| in |realm|. 1. Perform [=!=] DefinePropertyOrThrow(|F|, "prototype", PropertyDescriptor{\[[Value]]: |proto|, \[[Writable]]: false, \[[Enumerable]]: false, \[[Configurable]]: false}). @@ -12365,10 +12361,8 @@ in which case they are exposed on every object that [=implements=] the interface 1. If |attribute|'s type is a [=promise type=], then return [=!=] Call({{%Promise.reject%}}, {{%Promise%}}, «|E|»). 1. Otherwise, end these steps and allow the exception to propagate. - 1. Let |F| be CreateBuiltinFunction(|steps|, « », |realm|). 1. Let |name| be the string "get " prepended to |attribute|'s [=identifier=]. - 1. Perform SetFunctionName(|F|, |name|). - 1. Perform SetFunctionLength(|F|, 0). + 1. Let |F| be CreateBuiltinFunction(|steps|, 0, |name|, « », |realm|). 1. Return |F|. @@ -12451,10 +12445,8 @@ in which case they are exposed on every object that [=implements=] the interface 1. Perform the [=setter steps=] of |attribute|, with |idlObject| as [=this=] and |idlValue| as [=the given value=]. 1. Return undefined - 1. Let |F| be CreateBuiltinFunction(|steps|, « », |realm|). 1. Let |name| be the string "set " prepended to |id|. - 1. Perform SetFunctionName(|F|, |name|). - 1. Perform SetFunctionLength(|F|, 1). + 1. Let |F| be CreateBuiltinFunction(|steps|, 1, |name|, « », |realm|). 1. Return |F|. @@ -12569,13 +12561,11 @@ in which case they are exposed on every object that [=implements=] the interface that is a [=promise type=], then return [=!=] Call({{%Promise.reject%}}, {{%Promise%}}, «|E|»). 1. Otherwise, end these steps and allow the exception to propagate. - 1. Let |F| be CreateBuiltinFunction(|steps|, « », |realm|). - 1. Perform SetFunctionName(|F|, |id|). 1. [=Compute the effective overload set=] for [=regular operations=] (if |op| is a regular operation) or for [=static operations=] (if |op| is a static operation) with [=identifier=] |id| on |target| and with argument count 0, and let |S| be the result. 1. Let |length| be the length of the shortest argument list in the entries in |S|. - 1. Perform SetFunctionLength(|F|, |length|). + 1. Let |F| be CreateBuiltinFunction(|steps|, |length|, |id|, « », |realm|). 1. Return |F|. @@ -12812,9 +12802,7 @@ then there must exist a property with the following characteristics: |jsValue| as its [=default iterator object/target=], "key+value" as its [=default iterator object/kind=], and [=default iterator object/index=] set to 0. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "entries"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "entries", « », |realm|). 1. Perform [$DefineMethodProperty$](|target|, {{%Symbol.iterator%}}, |F|, false). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "entries", |F|). 1. Define the keys method: @@ -12827,9 +12815,7 @@ then there must exist a property with the following characteristics: 1. Return a newly created [=default iterator object=] for |definition|, with |jsValue| as its [=default iterator object/target=], "key" as its [=default iterator object/kind=], and [=default iterator object/index=] set to 0. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "keys"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, keys, « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "keys", |F|). 1. Define the values method: 1. Let |steps| be the following series of steps: @@ -12841,9 +12827,7 @@ then there must exist a property with the following characteristics: 1. Return a newly created [=default iterator object=] for |definition|, with |jsValue| as its [=default iterator object/target=], "value" as its [=default iterator object/kind=], and [=default iterator object/index=] set to 0. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "values"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, values, « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "values", |F|). 1. Define the forEach method: 1. Let |steps| be the following series of steps, given function argument values @@ -12867,9 +12851,7 @@ then there must exist a property with the following characteristics: 1. Set |pairs| to |idlObject|'s current list of [=value pairs to iterate over=]. (It might have changed.) 1. Set |i| to |i| + 1. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "forEach"). - 1. Perform [$SetFunctionLength$](|F|, 1). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 1, forEach, « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "forEach", |F|). @@ -13004,9 +12986,7 @@ and the string " Iterator". 1. Run the [=asynchronous iterator initialization steps=] for |definition| with |idlObject|, |iterator|, and |idlArgs|, if any such steps exist. 1. Return |iterator|. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "entries"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, entries, « », |realm|). 1. Perform [$DefineMethodProperty$](|target|, {{%Symbol.asyncIterator%}}, |F|, false). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "entries", |F|). 1. If |definition| has a [=pair asynchronously iterable declaration=], then define the @@ -13029,9 +13009,7 @@ and the string " Iterator". 1. Run the [=asynchronous iterator initialization steps=] for |definition| with |idlObject|, |iterator|, and |idlArgs|, if any such steps exist. 1. Return |iterator|. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "keys"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "keys, « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "keys", |F|). 1. Define the values, and possibly {{%Symbol.asyncIterator%}}, methods: 1. Let |steps| be the following series of steps, given function argument values |args|: @@ -13052,9 +13030,7 @@ and the string " Iterator". 1. Run the [=asynchronous iterator initialization steps=] for |definition| with |idlObject|, |iterator|, and |idlArgs|, if any such steps exist. 1. Return |iterator|. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|). - 1. Perform [$SetFunctionName$](|F|, "values"). - 1. Perform [$SetFunctionLength$](|F|, 0). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, values, « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "values", |F|). 1. If |definition| has a [=value asynchronously iterable declaration=], then perform [=!=] [$DefineMethodProperty$](|target|, {{%Symbol.asyncIterator%}}, |F|, false). @@ -13180,13 +13156,13 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob 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 [$CreateIteratorResultObject$](|value|, false). - 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »). + 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, 1, "", « »). 1. Let |rejectSteps| be the following steps, given |reason|: 1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to null. 1. Set |object|'s [=default asynchronous iterator object/is finished=] to true. 1. [=JavaScript/Throw=] |reason|. - 1. Let |onRejected| be [$CreateBuiltinFunction$](|rejectSteps|, « »). + 1. Let |onRejected| be [$CreateBuiltinFunction$](|rejectSteps|, 1, "", « »). 1. Perform [$PerformPromiseThen$](|nextPromise|, |onFulfilled|, |onRejected|, |nextPromiseCapability|). 1. Return |nextPromiseCapability|.\[[Promise]]. @@ -13195,7 +13171,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob 1. If |ongoingPromise| is not null, then: 1. Let |afterOngoingPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}). - 1. Let |onSettled| be [$CreateBuiltinFunction$](|nextSteps|, « »). + 1. Let |onSettled| be [$CreateBuiltinFunction$](|nextSteps|, 0, "", « »). 1. Perform [$PerformPromiseThen$](|ongoingPromise|, |onSettled|, |onSettled|, |afterOngoingPromiseCapability|). 1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to @@ -13259,7 +13235,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob 1. If |ongoingPromise| is not null, then: 1. Let |afterOngoingPromiseCapability| be [=!=] [$NewPromiseCapability$]({{%Promise%}}). - 1. Let |onSettled| be [$CreateBuiltinFunction$](|returnSteps|, « »). + 1. Let |onSettled| be [$CreateBuiltinFunction$](|returnSteps|, 0, "", « »). 1. Perform [$PerformPromiseThen$](|ongoingPromise|, |onSettled|, |onSettled|, |afterOngoingPromiseCapability|). 1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to @@ -13272,7 +13248,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob 1. Let |fulfillSteps| be the following steps: 1. Return [$CreateIteratorResultObject$](|value|, true). - 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, « »). + 1. Let |onFulfilled| be [$CreateBuiltinFunction$](|fulfillSteps|, 1, "", « »). 1. Perform [$PerformPromiseThen$](|object|'s [=default asynchronous iterator object/ongoing promise=], |onFulfilled|, undefined, |returnPromiseCapability|). @@ -14439,21 +14415,21 @@ those of normal Array instances: 1. Set |handler|.\[[Type]] to |T|. 1. Set |handler|.\[[SetAlgorithm]] to |setAlgorithm|. 1. Set |handler|.\[[DeleteAlgorithm]] to |deleteAlgorithm|. - 1. Let |defineProperty| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-defineProperty]], « », |realm|). + 1. Let |defineProperty| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-defineProperty]], 3, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "defineProperty", |defineProperty|). - 1. Let |deleteProperty| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-deleteProperty]], « », |realm|). + 1. Let |deleteProperty| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-deleteProperty]], 2, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "deleteProperty", |deleteProperty|). - 1. Let |get| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-get]], « », |realm|). + 1. Let |get| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-get]], 3, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "get", |get|). - 1. Let |getOwnPropertyDescriptor| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-getOwnPropertyDescriptor]], « », |realm|). + 1. Let |getOwnPropertyDescriptor| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-getOwnPropertyDescriptor]], 2, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "getOwnPropertyDescriptor", |getOwnPropertyDescriptor|). - 1. Let |has| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-has]], « », |realm|). + 1. Let |has| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-has]], 2, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "has", |has|). - 1. Let |ownKeys| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-ownKeys]], « », |realm|). + 1. Let |ownKeys| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-ownKeys]], 1, "", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "ownKeys", |ownKeys|). - 1. Let |preventExtensions| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-preventExtensions]], « », |realm|). + 1. Let |preventExtensions| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-preventExtensions]], « », 0, "", |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "preventExtensions", |preventExtensions|). - 1. Let |set| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-set]], « », |realm|). + 1. Let |set| be [$CreateBuiltinFunction$](the steps from [[#js-observable-array-set]], « », 4, "", |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|handler|, "set", |set|). 1. Return [=!=] [$ProxyCreate$](|innerArray|, |handler|). @@ -14777,9 +14753,7 @@ when applied to a [=legacy callback interface object=]. 1. Let |steps| be the following steps: 1. [=JavaScript/Throw=] a {{TypeError}}. - 1. Let |F| be CreateBuiltinFunction(|steps|, « », |realm|). - 1. Perform SetFunctionName(|F|, |id|). - 1. Perform SetFunctionLength(|F|, 0). + 1. Let |F| be CreateBuiltinFunction(|steps|, 0, |id|, « », |realm|). 1. [=Define the constants=] of |interface| on |F| given |realm|. 1. Return |F|. From de594b3ebf5d0b7d5f7ae5b664bdbd654f8aa21c Mon Sep 17 00:00:00 2001 From: ShinWonho <50018375+ShinWonho@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:56:07 +0900 Subject: [PATCH 2/6] Update index.bs Co-authored-by: Ms2ger --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index b2d14400..61b34b60 100644 --- a/index.bs +++ b/index.bs @@ -12815,7 +12815,7 @@ then there must exist a property with the following characteristics: 1. Return a newly created [=default iterator object=] for |definition|, with |jsValue| as its [=default iterator object/target=], "key" as its [=default iterator object/kind=], and [=default iterator object/index=] set to 0. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, keys, « », |realm|). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "keys", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "keys", |F|). 1. Define the values method: 1. Let |steps| be the following series of steps: From 2239fc7d9a0a78c84223fd953514a18eda7b106b Mon Sep 17 00:00:00 2001 From: ShinWonho <50018375+ShinWonho@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:56:17 +0900 Subject: [PATCH 3/6] Update index.bs Co-authored-by: Ms2ger --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 61b34b60..37f20731 100644 --- a/index.bs +++ b/index.bs @@ -12827,7 +12827,7 @@ then there must exist a property with the following characteristics: 1. Return a newly created [=default iterator object=] for |definition|, with |jsValue| as its [=default iterator object/target=], "value" as its [=default iterator object/kind=], and [=default iterator object/index=] set to 0. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, values, « », |realm|). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "values", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "values", |F|). 1. Define the forEach method: 1. Let |steps| be the following series of steps, given function argument values From 723458693c3394224a4769d0ca686775c294ca12 Mon Sep 17 00:00:00 2001 From: ShinWonho <50018375+ShinWonho@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:56:24 +0900 Subject: [PATCH 4/6] Update index.bs Co-authored-by: Ms2ger --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 37f20731..bc2e0b6c 100644 --- a/index.bs +++ b/index.bs @@ -12851,7 +12851,7 @@ then there must exist a property with the following characteristics: 1. Set |pairs| to |idlObject|'s current list of [=value pairs to iterate over=]. (It might have changed.) 1. Set |i| to |i| + 1. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 1, forEach, « », |realm|). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 1, "forEach", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "forEach", |F|). From 86d8d9f1d5282433872ee4c79a0eb66241ea5e6c Mon Sep 17 00:00:00 2001 From: ShinWonho <50018375+ShinWonho@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:56:32 +0900 Subject: [PATCH 5/6] Update index.bs Co-authored-by: Ms2ger --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index bc2e0b6c..5ee595ef 100644 --- a/index.bs +++ b/index.bs @@ -12986,7 +12986,7 @@ and the string " Iterator". 1. Run the [=asynchronous iterator initialization steps=] for |definition| with |idlObject|, |iterator|, and |idlArgs|, if any such steps exist. 1. Return |iterator|. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, entries, « », |realm|). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "entries", « », |realm|). 1. Perform [$DefineMethodProperty$](|target|, {{%Symbol.asyncIterator%}}, |F|, false). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "entries", |F|). 1. If |definition| has a [=pair asynchronously iterable declaration=], then define the From ebefdedcd7248a008938876c7bbb8ee36360d627 Mon Sep 17 00:00:00 2001 From: ShinWonho <50018375+ShinWonho@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:56:41 +0900 Subject: [PATCH 6/6] Update index.bs Co-authored-by: Ms2ger --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 5ee595ef..ff3408f6 100644 --- a/index.bs +++ b/index.bs @@ -13030,7 +13030,7 @@ and the string " Iterator". 1. Run the [=asynchronous iterator initialization steps=] for |definition| with |idlObject|, |iterator|, and |idlArgs|, if any such steps exist. 1. Return |iterator|. - 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, values, « », |realm|). + 1. Let |F| be [$CreateBuiltinFunction$](|steps|, 0, "values", « », |realm|). 1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "values", |F|). 1. If |definition| has a [=value asynchronously iterable declaration=], then perform [=!=] [$DefineMethodProperty$](|target|, {{%Symbol.asyncIterator%}}, |F|, false).