@@ -12328,8 +12328,8 @@ then there must exist a property with the following characteristics:
12328
12328
of [=interface=] |definition| on |target|, given [=realm=] |realm|, run the following steps:
12329
12329
12330
12330
1. If |definition| has an [=indexed property getter=], then:
12331
- 1. Perform [$CreateMethodProperty $](|target|, {{@@iterator}},
12332
- {{%Array.prototype.values%}}).
12331
+ 1. Perform [$DefineMethodProperty $](|target|, {{@@iterator}},
12332
+ {{%Array.prototype.values%}}, false ).
12333
12333
1. If |definition| has a [=value iterator=], then:
12334
12334
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "<code>entries</code>",
12335
12335
{{%Array.prototype.entries%}}).
@@ -12354,7 +12354,7 @@ then there must exist a property with the following characteristics:
12354
12354
1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|).
12355
12355
1. Perform [$SetFunctionName$](|F|, "<code>entries</code>").
12356
12356
1. Perform [$SetFunctionLength$](|F|, 0).
12357
- 1. Perform [$CreateMethodProperty $](|target|, {{@@iterator}}, |F|).
12357
+ 1. Perform [$DefineMethodProperty $](|target|, {{@@iterator}}, |F|, false ).
12358
12358
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "<code>entries</code>", |F|).
12359
12359
1. Define the <code class="idl">keys</code> method:
12360
12360
1. Let |steps| be the following series of steps:
@@ -12546,7 +12546,7 @@ and the string "<code> Iterator</code>".
12546
12546
1. Let |F| be [$CreateBuiltinFunction$](|steps|, « », |realm|).
12547
12547
1. Perform [$SetFunctionName$](|F|, "<code>entries</code>").
12548
12548
1. Perform [$SetFunctionLength$](|F|, 0).
12549
- 1. Perform [$CreateMethodProperty $](|target|, {{@@asyncIterator}}, |F|).
12549
+ 1. Perform [$DefineMethodProperty $](|target|, {{@@asyncIterator}}, |F|, false ).
12550
12550
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "<code>entries</code>", |F|).
12551
12551
1. If |definition| has a [=pair asynchronously iterable declaration=], then define the
12552
12552
<code class="idl">keys</code> method:
@@ -12596,7 +12596,7 @@ and the string "<code> Iterator</code>".
12596
12596
1. Perform [$SetFunctionLength$](|F|, 0).
12597
12597
1. Perform [=!=] [$CreateDataPropertyOrThrow$](|target|, "<code>values</code>", |F|).
12598
12598
1. If |definition| has a [=value asynchronously iterable declaration=], then perform [=!=]
12599
- [$CreateMethodProperty $](|target|, {{@@asyncIterator}}, |F|).
12599
+ [$DefineMethodProperty $](|target|, {{@@asyncIterator}}, |F|, false ).
12600
12600
</div>
12601
12601
12602
12602
<div algorithm>
@@ -13508,31 +13508,31 @@ the realm given as an argument.
13508
13508
1. Let |id| be |interface|'s [=identifier=].
13509
13509
1. Let |interfaceObject| be the result of [=create an interface object|creating
13510
13510
an interface object=] for |interface| with |id| in |realm|.
13511
- 1. Perform [$CreateMethodProperty $](|target|, |id|, |interfaceObject|).
13511
+ 1. Perform [$DefineMethodProperty $](|target|, |id|, |interfaceObject|, false ).
13512
13512
1. If the |interface| is declared with a [{{LegacyWindowAlias}}] [=extended attribute=],
13513
13513
and |target| implements the {{Window}} [=interface=], then:
13514
13514
1. [=list/iterate|For every=] [=LegacyWindowAlias identifier|identifier=] |id| in
13515
13515
[{{LegacyWindowAlias}}]'s [=LegacyWindowAlias identifier|identifiers=]:
13516
- 1. Perform [$CreateMethodProperty $](|target|, |id|, |interfaceObject|).
13516
+ 1. Perform [$DefineMethodProperty $](|target|, |id|, |interfaceObject|, false ).
13517
13517
1. If the |interface| is declared with a [{{LegacyFactoryFunction}}] [=extended attribute=],
13518
13518
then:
13519
13519
1. [=list/iterate|For every=] [=LegacyFactoryFunction identifier|identifier=] |id| in
13520
13520
[{{LegacyFactoryFunction}}]'s [=LegacyFactoryFunction identifier|identifiers=]:
13521
13521
1. Let |legacyFactoryFunction| be the result of
13522
13522
[=create a legacy factory function|creating a legacy factory function=] with
13523
13523
|id| for |interface| in |realm|.
13524
- 1. Perform [$CreateMethodProperty $](|target|, |id|, |legacyFactoryFunction|).
13524
+ 1. Perform [$DefineMethodProperty $](|target|, |id|, |legacyFactoryFunction|, false ).
13525
13525
1. [=list/iterate|For every=] [=callback interface=] |interface| that is [=exposed=] in
13526
13526
|realm| and on which [=constants=] are defined:
13527
13527
1. Let |id| be |interface|'s [=identifier=].
13528
13528
1. Let |interfaceObject| be the result of [=create a legacy callback interface
13529
13529
object|creating a legacy callback interface object=] for |interface| with |id| in |realm|.
13530
- 1. Perform [$CreateMethodProperty $](|target|, |id|, |interfaceObject|).
13530
+ 1. Perform [$DefineMethodProperty $](|target|, |id|, |interfaceObject|, false ).
13531
13531
1. [=list/iterate|For every=] [=namespace=] |namespace| that is [=exposed=] in
13532
13532
|realm|:
13533
13533
1. Let |id| be |namespace|'s [=identifier=].
13534
13534
1. Let |namespaceObject| be the result of [=create a namespace object|creating a namespace object=] for |namespace| in |realm|.
13535
- 1. Perform [$CreateMethodProperty $](|target|, |id|, |namespaceObject|).
13535
+ 1. Perform [$DefineMethodProperty $](|target|, |id|, |namespaceObject|, false ).
13536
13536
</div>
13537
13537
13538
13538
<div class="note">
@@ -14443,7 +14443,7 @@ The characteristics of a namespace object are described in [[#namespace-object]]
14443
14443
1. Let |id| be |interface|'s [=identifier=].
14444
14444
1. Let |interfaceObject| be the result of [=create an interface object|creating an
14445
14445
interface object=] for |interface| with |id| in |realm|.
14446
- 1. Perform [$CreateMethodProperty $](|namespaceObject|, |id|, |interfaceObject|).
14446
+ 1. Perform [$DefineMethodProperty $](|namespaceObject|, |id|, |interfaceObject|, false ).
14447
14447
1. Return |namespaceObject|.
14448
14448
</div>
14449
14449
0 commit comments