Skip to content

Commit 84c4ccc

Browse files
author
Raphael Kubo da Costa
authored
Fix extra }s after various TypeError references
This systematic mistake was introduced in 50afeeb.
1 parent c2ca1a4 commit 84c4ccc

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

index.bs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8737,15 +8737,15 @@ class, with the following additional restrictions on those objects.
87378737
1. If <a abstract-op>Type</a>(|V|) is not Object,
87388738
or |V| does not have a \[[TypedArrayName]] [=/internal slot=]
87398739
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>.
87418741
1. If the conversion is not to an IDL type
87428742
[=extended attributes associated with|associated with=] the [{{AllowShared}}]
87438743
[=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>.
87458745
1. If the conversion is not to an IDL type
87468746
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
87478747
[=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>.
87498749
1. Return the IDL value of type |T| that is a reference to the same object as |V|.
87508750
</div>
87518751

@@ -11183,7 +11183,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
1118311183

1118411184
1. Otherwise: if there is an entry in |S| that has {{any}} at position |i|
1118511185
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>.
1118711187
1. Let |callable| be the [=operation=] or [=extended attribute=]
1118811188
of the single entry in |S|.
1118911189
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
1132211322
* the platform object |object|
1132311323
* the identifier |name|
1132411324
* 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>.
1132611326
1. Return |object|.
1132711327

1132811328
Issue: This algo is not yet consistently used everywhere.
@@ -11374,9 +11374,9 @@ default interfaces do not have such steps.
1137411374
1. Let |steps| be |I|'s [=overridden constructor steps=] if they exist, or
1137511375
the following steps otherwise:
1137611376
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>.
1137811378
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>.
1138011380
1. Let |args| be the passed arguments.
1138111381
1. Let |n| be the [=list/size=] of |args|.
1138211382
1. Let |id| be the identifier of interface |I|.
@@ -11444,7 +11444,7 @@ implement the interface on which the
1144411444

1144511445
1. Let |steps| be the following steps:
1144611446
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>.
1144811448
1. Let |args| be the passed arguments.
1144911449
1. Let |n| be the [=list/size=] of |args|.
1145011450
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
1180311803
1. If |esValue| does not [=implement=] |target|, then:
1180411804
1. If |attribute| was specified with the [{{LegacyLenientThis}}]
1180511805
[=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>.
1180711807
1. If |attribute|'s type is an [=observable array type=], then return |esValue|'s
1180811808
[=backing observable array exotic object=] for |attribute|.
1180911809
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
1183911839
<emu-val>undefined</emu-val>; there is no [=attribute setter=] function.
1184011840
1. Assert: |attribute|'s type is not a [=promise type=].
1184111841
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>.
1184311843
1. Let |V| be the value of the first argument passed.
1184411844
1. Let |id| be |attribute|'s [=identifier=].
1184511845
1. Let |idlObject| be null.
@@ -11855,7 +11855,7 @@ in which case they are exposed on every object that [=implements=] the interface
1185511855
|esValue|, |id|, and "setter".
1185611856
1. Let |validThis| be true if |esValue| [=implements=] |target|, or false otherwise.
1185711857
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>.
1185911859
1. If |attribute| is declared with the [{{Replaceable}}] extended attribute, then:
1186011860
1. Perform [=?=] <a abstract-op>CreateDataProperty</a>(|esValue|, |id|, |V|).
1186111861
1. Return <emu-val>undefined</emu-val>.
@@ -11865,7 +11865,7 @@ in which case they are exposed on every object that [=implements=] the interface
1186511865
1. If |attribute| is declared with a [{{PutForwards}}] extended attribute, then:
1186611866
1. Let |Q| be [=?=] <a abstract-op>Get</a>(|esValue|, |id|).
1186711867
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>.
1186911869
1. Let |forwardId| be the identifier argument of the [{{PutForwards}}] extended
1187011870
attribute.
1187111871
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
1199511995
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1199611996
passing |esValue|, |id|, and "method".
1199711997
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>.
1199911999
1. Set |idlObject| to the IDL [=interface type=] value that represents a reference
1200012000
to |esValue|.
1200112001
1. Let |n| be the [=list/size=] of |args|.
@@ -12214,7 +12214,7 @@ then there must exist a property with the following characteristics:
1221412214
* the [=identifier=] of the [=stringifier=], and
1221512215
* the type "<code>method</code>".
1221612216
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>.
1221812218
1. Let |V| be an uninitialized variable.
1221912219
1. Depending on how <code>stringifier</code> was specified:
1222012220
<dl class="switch">
@@ -12260,7 +12260,7 @@ then there must exist a property with the following characteristics:
1226012260
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1226112261
passing |esValue|, "<code>@@iterator</code>", and "<code>method</code>".
1226212262
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12263-
<l spec=ecmascript>{{TypeError}}</l>}.
12263+
<l spec=ecmascript>{{TypeError}}</l>.
1226412264
1. Return a newly created [=default iterator object=] for |definition|, with
1226512265
|esValue| as its [=default iterator object/target=], "<code>key+value</code>"
1226612266
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:
1227612276
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1227712277
passing |esValue|, "<code>keys</code>", and "<code>method</code>".
1227812278
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12279-
<l spec=ecmascript>{{TypeError}}</l>}.
12279+
<l spec=ecmascript>{{TypeError}}</l>.
1228012280
1. Return a newly created [=default iterator object=] for |definition|, with
1228112281
|esValue| as its [=default iterator object/target=], "<code>key</code>" as its
1228212282
[=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:
1229012290
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1229112291
passing |esValue|, "<code>values</code>", and "<code>method</code>".
1229212292
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12293-
<l spec=ecmascript>{{TypeError}}</l>}.
12293+
<l spec=ecmascript>{{TypeError}}</l>.
1229412294
1. Return a newly created [=default iterator object=] for |definition|, with
1229512295
|esValue| as its [=default iterator object/target=], "<code>value</code>" as its
1229612296
[=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:
1230512305
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1230612306
passing |esValue|, "<code>forEach</code>", and "<code>method</code>".
1230712307
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12308-
<l spec=ecmascript>{{TypeError}}</l>}.
12308+
<l spec=ecmascript>{{TypeError}}</l>.
1230912309
1. Let |idlCallback| be |callback|, [=converted to an IDL value|converted=] to a
1231012310
{{Function}}.
1231112311
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference
@@ -12411,7 +12411,7 @@ must be {{%IteratorPrototype%}}.
1241112411
* the identifier "<code>next</code>", and
1241212412
* the type "<code>method</code>".
1241312413
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>.
1241512415
1. Let |index| be |object|'s [=default iterator object/index=].
1241612416
1. Let |kind| be |object|'s [=default iterator object/kind=].
1241712417
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>".
1244412444
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
1244512445
|esValue|, "<code>@@asyncIterator</code>", and "<code>method</code>".
1244612446
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12447-
<l spec=ecmascript>{{TypeError}}</l>}.
12447+
<l spec=ecmascript>{{TypeError}}</l>.
1244812448
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
1244912449
|esValue|.
1245012450
1. Let |idlArgs| be the result of
@@ -12469,7 +12469,7 @@ and the string "<code> Iterator</code>".
1246912469
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
1247012470
|esValue|, "<code>keys</code>", and "<code>method</code>".
1247112471
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12472-
<l spec=ecmascript>{{TypeError}}</l>}.
12472+
<l spec=ecmascript>{{TypeError}}</l>.
1247312473
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
1247412474
|esValue|.
1247512475
1. Let |idlArgs| be the result of
@@ -12492,7 +12492,7 @@ and the string "<code> Iterator</code>".
1249212492
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
1249312493
|esValue|, "<code>values</code>", and "<code>method</code>".
1249412494
1. If |esValue| does not [=implement=] |definition|, then [=ECMAScript/throw=] a
12495-
<l spec=ecmascript>{{TypeError}}</l>}.
12495+
<l spec=ecmascript>{{TypeError}}</l>.
1249612496
1. Let |idlObject| be the IDL [=interface type=] value that represents a reference to
1249712497
|esValue|.
1249812498
1. Let |idlArgs| be the result of
@@ -12601,7 +12601,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1260112601
1. Return |thisValidationPromiseCapability|.\[[Promise]].
1260212602

1260312603
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>.
1260512605
1. Perform [=!=] [$Call$](|thisValidationPromiseCapability|.\[[Reject]],
1260612606
<emu-val>undefined</emu-val>, « |error| »).
1260712607
1. Return |thisValidationPromiseCapability|.\[[Promise]].
@@ -12691,7 +12691,7 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
1269112691
1. Return |returnPromiseCapability|.\[[Promise]].
1269212692

1269312693
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>.
1269512695
1. Perform [=!=] [$Call$](|returnPromiseCapability|.\[[Reject]],
1269612696
<emu-val>undefined</emu-val>, « |error| »).
1269712697
1. Return |returnPromiseCapability|.\[[Promise]].
@@ -12882,7 +12882,7 @@ with the following characteristics:
1288212882
1. Let |map| be the [=map entries=] of the IDL value
1288312883
that represents a reference to |O|.
1288412884
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>.
1288612886
1. Let |thisArg| be the second argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
1288712887
1. [=map/For each=] |key| → |value| of |map|:
1288812888
1. Let |esKey| and |esValue| be |key| and |value| [=converted to an ECMAScript value=].
@@ -13183,7 +13183,7 @@ with the following characteristics:
1318313183
1. Let |set| be the [=set entries=] of the IDL value
1318413184
that represents a reference to |O|.
1318513185
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>.
1318713187
1. Let |thisArg| be the second argument passed to the function, or <emu-val>undefined</emu-val> if not supplied.
1318813188
1. [=map/For each=] |value| of |set|:
1318913189
1. Let |esValue| be |value| [=converted to an ECMAScript value=].
@@ -14174,7 +14174,7 @@ the special value “missing”, which represents a missing optional argument.
1417414174
1. Set |X| to |getResult|.\[[Value]].
1417514175
1. If <a abstract-op>IsCallable</a>(|X|) is <emu-val>false</emu-val>,
1417614176
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
1417814178
to the step labeled <a href="#call-user-object-operation-return"><i>return</i></a>.
1417914179
1. Set |thisArg| to |O| (overriding the provided value).
1418014180
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=].
1422814228
is <dfn lt="create a legacy callback interface object">created</dfn> as follows:
1422914229

1423014230
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>.
1423214232
1. Let |F| be <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1423314233
1. Perform <a abstract-op>SetFunctionName</a>(|F|, |id|).
1423414234
1. Perform <a abstract-op>SetFunctionLength</a>(|F|, 0).
@@ -14303,7 +14303,7 @@ a return type that is a [=promise type=].
1430314303
1. Let |completion| be an uninitialized variable.
1430414304
1. Let |F| be the ECMAScript object corresponding to |callable|.
1430514305
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.
1430714307
1. Let |realm| be |F|'s [=associated realm=].
1430814308
1. Let |relevant settings| be |realm|'s [=realm/settings object=].
1430914309
1. Let |stored settings| be |callable|'s [=callback context=].

0 commit comments

Comments
 (0)