@@ -8737,15 +8737,15 @@ class, with the following additional restrictions on those objects.
8737
8737
1. If <a abstract-op>Type</a>(|V|) is not Object,
8738
8738
or |V| does not have a \[[TypedArrayName]] [=/internal slot=]
8739
8739
with a value equal to |T|'s name,
8740
- then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
8740
+ then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
8741
8741
1. If the conversion is not to an IDL type
8742
8742
[=extended attributes associated with|associated with=] the [{{AllowShared}}]
8743
8743
[=extended attribute=], and <a abstract-op>IsSharedArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is true,
8744
- then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
8744
+ then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
8745
8745
1. If the conversion is not to an IDL type
8746
8746
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
8747
8747
[=extended attribute=], and <a abstract-op>IsResizableArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is true,
8748
- then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
8748
+ then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
8749
8749
1. Return the IDL value of type |T| that is a reference to the same object as |V|.
8750
8750
</div>
8751
8751
@@ -11183,7 +11183,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
11183
11183
11184
11184
1. Otherwise: if there is an entry in |S| that has {{any}} at position |i|
11185
11185
of its type list, then remove from |S| all other entries.
11186
- 1. Otherwise: [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11186
+ 1. Otherwise: [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11187
11187
1. Let |callable| be the [=operation=] or [=extended attribute=]
11188
11188
of the single entry in |S|.
11189
11189
1. If |i| = |d| and |method| is not <emu-val>undefined</emu-val>, then
@@ -11322,7 +11322,7 @@ The characteristics of a legacy factory function are described in [[#legacy-fact
11322
11322
* the platform object |object|
11323
11323
* the identifier |name|
11324
11324
* the type |type|
11325
- 1. If |object| does not [=implement=] |interface|, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11325
+ 1. If |object| does not [=implement=] |interface|, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11326
11326
1. Return |object|.
11327
11327
11328
11328
Issue: This algo is not yet consistently used everywhere.
@@ -11374,9 +11374,9 @@ default interfaces do not have such steps.
11374
11374
1. Let |steps| be |I|'s [=overridden constructor steps=] if they exist, or
11375
11375
the following steps otherwise:
11376
11376
1. If |I| was not declared with a [=constructor operation=],
11377
- then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11377
+ then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11378
11378
1. If {{NewTarget}} is <emu-val>undefined</emu-val>, then
11379
- [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11379
+ [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11380
11380
1. Let |args| be the passed arguments.
11381
11381
1. Let |n| be the [=list/size=] of |args|.
11382
11382
1. Let |id| be the identifier of interface |I|.
@@ -11444,7 +11444,7 @@ implement the interface on which the
11444
11444
11445
11445
1. Let |steps| be the following steps:
11446
11446
1. If {{NewTarget}} is <emu-val>undefined</emu-val>, then
11447
- [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11447
+ [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11448
11448
1. Let |args| be the passed arguments.
11449
11449
1. Let |n| be the [=list/size=] of |args|.
11450
11450
1. [=Compute the effective overload set=] for legacy factory functions with [=identifier=] |id|
@@ -11803,7 +11803,7 @@ in which case they are exposed on every object that [=implements=] the interface
11803
11803
1. If |esValue| does not [=implement=] |target|, then:
11804
11804
1. If |attribute| was specified with the [{{LegacyLenientThis}}]
11805
11805
[=extended attribute=], then return <emu-val>undefined</emu-val>.
11806
- 1. Otherwise, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11806
+ 1. Otherwise, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11807
11807
1. If |attribute|'s type is an [=observable array type=], then return |esValue|'s
11808
11808
[=backing observable array exotic object=] for |attribute|.
11809
11809
1. Set |idlObject| to the IDL [=interface type=] value that represents a reference
@@ -11839,7 +11839,7 @@ in which case they are exposed on every object that [=implements=] the interface
11839
11839
<emu-val>undefined</emu-val>; there is no [=attribute setter=] function.
11840
11840
1. Assert: |attribute|'s type is not a [=promise type=].
11841
11841
1. Let |steps| be the following series of steps:
11842
- 1. If no arguments were passed, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11842
+ 1. If no arguments were passed, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11843
11843
1. Let |V| be the value of the first argument passed.
11844
11844
1. Let |id| be |attribute|'s [=identifier=].
11845
11845
1. Let |idlObject| be null.
@@ -11855,7 +11855,7 @@ in which case they are exposed on every object that [=implements=] the interface
11855
11855
|esValue|, |id|, and "setter".
11856
11856
1. Let |validThis| be true if |esValue| [=implements=] |target|, or false otherwise.
11857
11857
1. If |validThis| is false and |attribute| was not specified with the [{{LegacyLenientThis}}]
11858
- [=extended attribute=], then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11858
+ [=extended attribute=], then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11859
11859
1. If |attribute| is declared with the [{{Replaceable}}] extended attribute, then:
11860
11860
1. Perform [=?=] <a abstract-op>CreateDataProperty</a>(|esValue|, |id|, |V|).
11861
11861
1. Return <emu-val>undefined</emu-val>.
@@ -11865,7 +11865,7 @@ in which case they are exposed on every object that [=implements=] the interface
11865
11865
1. If |attribute| is declared with a [{{PutForwards}}] extended attribute, then:
11866
11866
1. Let |Q| be [=?=] <a abstract-op>Get</a>(|esValue|, |id|).
11867
11867
1. If <a abstract-op>Type</a>(|Q|) is not Object, then [=ECMAScript/throw=] a
11868
- <l spec=ecmascript>{{TypeError}}</l>} .
11868
+ <l spec=ecmascript>{{TypeError}}</l>.
11869
11869
1. Let |forwardId| be the identifier argument of the [{{PutForwards}}] extended
11870
11870
attribute.
11871
11871
1. Perform [=?=] <a abstract-op>Set</a>(|Q|, |forwardId|, |V|, <emu-val>false</emu-val>).
@@ -11995,7 +11995,7 @@ in which case they are exposed on every object that [=implements=] the interface
11995
11995
1. If |esValue| [=is a platform object=], then [=perform a security check=],
11996
11996
passing |esValue|, |id|, and "method".
11997
11997
1. If |esValue| does not [=implement=] the interface |target|,
11998
- [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
11998
+ [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11999
11999
1. Set |idlObject| to the IDL [=interface type=] value that represents a reference
12000
12000
to |esValue|.
12001
12001
1. Let |n| be the [=list/size=] of |args|.
@@ -12214,7 +12214,7 @@ then there must exist a property with the following characteristics:
12214
12214
* the [=identifier=] of the [=stringifier=], and
12215
12215
* the type "<code>method</code>".
12216
12216
1. If |O| does not [=implement=] the [=interface=]
12217
- on which the stringifier was declared, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
12217
+ on which the stringifier was declared, then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
12218
12218
1. Let |V| be an uninitialized variable.
12219
12219
1. Depending on how <code>stringifier</code> was specified:
12220
12220
<dl class="switch">
@@ -12260,7 +12260,7 @@ then there must exist a property with the following characteristics:
12260
12260
1. If |esValue| [=is a platform object=], then [=perform a security check=],
12261
12261
passing |esValue|, "<code>@@iterator</code>", and "<code>method</code>".
12262
12262
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12263
- <l spec=ecmascript>{{TypeError}}</l>} .
12263
+ <l spec=ecmascript>{{TypeError}}</l>.
12264
12264
1. Return a newly created [=default iterator object=] for |definition|, with
12265
12265
|esValue| as its [=default iterator object/target=], "<code>key+value</code>"
12266
12266
as its [=default iterator object/kind=], and [=default iterator object/index=]
@@ -12276,7 +12276,7 @@ then there must exist a property with the following characteristics:
12276
12276
1. If |esValue| [=is a platform object=], then [=perform a security check=],
12277
12277
passing |esValue|, "<code>keys</code>", and "<code>method</code>".
12278
12278
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12279
- <l spec=ecmascript>{{TypeError}}</l>} .
12279
+ <l spec=ecmascript>{{TypeError}}</l>.
12280
12280
1. Return a newly created [=default iterator object=] for |definition|, with
12281
12281
|esValue| as its [=default iterator object/target=], "<code>key</code>" as its
12282
12282
[=default iterator object/kind=], and [=default iterator object/index=] set to 0.
@@ -12290,7 +12290,7 @@ then there must exist a property with the following characteristics:
12290
12290
1. If |esValue| [=is a platform object=], then [=perform a security check=],
12291
12291
passing |esValue|, "<code>values</code>", and "<code>method</code>".
12292
12292
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12293
- <l spec=ecmascript>{{TypeError}}</l>} .
12293
+ <l spec=ecmascript>{{TypeError}}</l>.
12294
12294
1. Return a newly created [=default iterator object=] for |definition|, with
12295
12295
|esValue| as its [=default iterator object/target=], "<code>value</code>" as its
12296
12296
[=default iterator object/kind=], and [=default iterator object/index=] set to 0.
@@ -12305,7 +12305,7 @@ then there must exist a property with the following characteristics:
12305
12305
1. If |esValue| [=is a platform object=], then [=perform a security check=],
12306
12306
passing |esValue|, "<code>forEach</code>", and "<code>method</code>".
12307
12307
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12308
- <l spec=ecmascript>{{TypeError}}</l>} .
12308
+ <l spec=ecmascript>{{TypeError}}</l>.
12309
12309
1. Let |idlCallback| be |callback|, [=converted to an IDL value|converted=] to a
12310
12310
{{Function}}.
12311
12311
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference
@@ -12411,7 +12411,7 @@ must be {{%IteratorPrototype%}}.
12411
12411
* the identifier "<code>next</code>", and
12412
12412
* the type "<code>method</code>".
12413
12413
1. If |object| is not a [=default iterator object=] for |interface|,
12414
- then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
12414
+ then [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
12415
12415
1. Let |index| be |object|'s [=default iterator object/index=].
12416
12416
1. Let |kind| be |object|'s [=default iterator object/kind=].
12417
12417
1. Let |values| be |object|'s [=default iterator object/target=]'s [=value pairs to iterate over=].
@@ -12444,7 +12444,7 @@ and the string "<code> Iterator</code>".
12444
12444
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
12445
12445
|esValue|, "<code>@@asyncIterator</code>", and "<code>method</code>".
12446
12446
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12447
- <l spec=ecmascript>{{TypeError}}</l>} .
12447
+ <l spec=ecmascript>{{TypeError}}</l>.
12448
12448
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
12449
12449
|esValue|.
12450
12450
1. Let |idlArgs| be the result of
@@ -12469,7 +12469,7 @@ and the string "<code> Iterator</code>".
12469
12469
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
12470
12470
|esValue|, "<code>keys</code>", and "<code>method</code>".
12471
12471
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12472
- <l spec=ecmascript>{{TypeError}}</l>} .
12472
+ <l spec=ecmascript>{{TypeError}}</l>.
12473
12473
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
12474
12474
|esValue|.
12475
12475
1. Let |idlArgs| be the result of
@@ -12492,7 +12492,7 @@ and the string "<code> Iterator</code>".
12492
12492
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
12493
12493
|esValue|, "<code>values</code>", and "<code>method</code>".
12494
12494
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12495
- <l spec=ecmascript>{{TypeError}}</l>} .
12495
+ <l spec=ecmascript>{{TypeError}}</l>.
12496
12496
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
12497
12497
|esValue|.
12498
12498
1. Let |idlArgs| be the result of
@@ -12601,7 +12601,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
12601
12601
1. Return |thisValidationPromiseCapability|.\[[Promise]].
12602
12602
12603
12603
1. If |object| is not a [=default asynchronous iterator object=] for |interface|, then:
12604
- 1. Let |error| be a new <l spec=ecmascript>{{TypeError}}</l>} .
12604
+ 1. Let |error| be a new <l spec=ecmascript>{{TypeError}}</l>.
12605
12605
1. Perform [=!=] [$Call$](|thisValidationPromiseCapability|.\[[Reject]],
12606
12606
<emu-val>undefined</emu-val>, « |error| »).
12607
12607
1. Return |thisValidationPromiseCapability|.\[[Promise]].
@@ -12691,7 +12691,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
12691
12691
1. Return |returnPromiseCapability|.\[[Promise]].
12692
12692
12693
12693
1. If |object| is not a [=default asynchronous iterator object=] for |interface|, then:
12694
- 1. Let |error| be a new <l spec=ecmascript>{{TypeError}}</l>} .
12694
+ 1. Let |error| be a new <l spec=ecmascript>{{TypeError}}</l>.
12695
12695
1. Perform [=!=] [$Call$](|returnPromiseCapability|.\[[Reject]],
12696
12696
<emu-val>undefined</emu-val>, « |error| »).
12697
12697
1. Return |returnPromiseCapability|.\[[Promise]].
@@ -12882,7 +12882,7 @@ with the following characteristics:
12882
12882
1. Let |map| be the [=map entries=] of the IDL value
12883
12883
that represents a reference to |O|.
12884
12884
1. Let |callbackFn| be the first argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
12885
- 1. If [$IsCallable$](|callbackFn|) is <emu-val>false</emu-val>, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
12885
+ 1. If [$IsCallable$](|callbackFn|) is <emu-val>false</emu-val>, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
12886
12886
1. Let |thisArg| be the second argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
12887
12887
1. [=map/For each=] |key| → |value| of |map|:
12888
12888
1. Let |esKey| and |esValue| be |key| and |value| [=converted to an ECMAScript value=].
@@ -13183,7 +13183,7 @@ with the following characteristics:
13183
13183
1. Let |set| be the [=set entries=] of the IDL value
13184
13184
that represents a reference to |O|.
13185
13185
1. Let |callbackFn| be the first argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
13186
- 1. If [$IsCallable$](|callbackFn|) is <emu-val>false</emu-val>, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
13186
+ 1. If [$IsCallable$](|callbackFn|) is <emu-val>false</emu-val>, [=ECMAScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
13187
13187
1. Let |thisArg| be the second argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
13188
13188
1. [=map/For each=] |value| of |set|:
13189
13189
1. Let |esValue| be |value| [=converted to an ECMAScript value=].
@@ -14174,7 +14174,7 @@ the special value “missing”, which represents a missing optional argument.
14174
14174
1. Set |X| to |getResult|.\[[Value]].
14175
14175
1. If <a abstract-op>IsCallable</a>(|X|) is <emu-val>false</emu-val>,
14176
14176
then set |completion| to [=Completion Record=] { \[[Type]]: throw, \[[Value]]: a
14177
- newly created <l spec=ecmascript>{{TypeError}}</l>} object, \[[Target]]: empty }, and jump
14177
+ newly created <l spec=ecmascript>{{TypeError}}</l> object, \[[Target]]: empty }, and jump
14178
14178
to the step labeled <a href="#call-user-object-operation-return"><i>return</i></a>.
14179
14179
1. Set |thisArg| to |O| (overriding the provided value).
14180
14180
1. Let |esArgs| be the result of [=Web IDL arguments list/converting=] |args| to an ECMAScript
@@ -14228,7 +14228,7 @@ when applied to a [=legacy callback interface object=].
14228
14228
is <dfn lt="create a legacy callback interface object">created</dfn> as follows:
14229
14229
14230
14230
1. Let |steps| be the following steps:
14231
- 1. [=ECMAScript/Throw=] a <l spec=ecmascript>{{TypeError}}</l>} .
14231
+ 1. [=ECMAScript/Throw=] a <l spec=ecmascript>{{TypeError}}</l>.
14232
14232
1. Let |F| be <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
14233
14233
1. Perform <a abstract-op>SetFunctionName</a>(|F|, |id|).
14234
14234
1. Perform <a abstract-op>SetFunctionLength</a>(|F|, 0).
@@ -14303,7 +14303,7 @@ a return type that is a [=promise type=].
14303
14303
1. Let |completion| be an uninitialized variable.
14304
14304
1. Let |F| be the ECMAScript object corresponding to |callable|.
14305
14305
1. If <a abstract-op>IsConstructor</a>(|F|) is <emu-val>false</emu-val>, throw a
14306
- <l spec=ecmascript>{{TypeError}}</l>} exception.
14306
+ <l spec=ecmascript>{{TypeError}}</l> exception.
14307
14307
1. Let |realm| be |F|'s [=associated realm=].
14308
14308
1. Let |relevant settings| be |realm|'s [=realm/settings object=].
14309
14309
1. Let |stored settings| be |callable|'s [=callback context=].
0 commit comments