Skip to content

Commit bb8df2f

Browse files
committed
Define "usual constructor steps"
This is for use in [HTMLConstructor] in whatwg/html#4915.
1 parent db74ef4 commit bb8df2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.bs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11126,13 +11126,13 @@ and is described in more detail in [[#interface-prototype-object]].
1112611126
Note: Since an [=interface object=] is a [=function object=]
1112711127
the <code>typeof</code> operator will return "function" when applied to an interface object.
1112811128

11129-
<div algorithm>
11129+
<div algorithm="create an interface object">
1113011130

1113111131
The [=interface object=] for a given [=interface=] |I|
1113211132
with [=identifier=] |id| and in [=Realm=] |realm|
1113311133
is <dfn lt="create an interface object">created</dfn> as follows:
1113411134

11135-
1. Let |steps| be the following steps:
11135+
1. Let |steps| be the following steps, known as the <dfn export>usual constructor steps</dfn>:
1113611136
1. If |I| was not declared with a [=constructor operation=],
1113711137
then [=ECMAScript/throw=] a {{ECMAScript/TypeError}}.
1113811138
1. If {{NewTarget}} is <emu-val>undefined</emu-val>, then
@@ -11186,6 +11186,9 @@ the <code>typeof</code> operator will return "function" when applied to an inter
1118611186
1. [=Define the static operations=] of [=interface=] |I| on |F| given |realm|.
1118711187
1. Return |F|.
1118811188

11189+
Other specifications may require that, under certain circumstances, a different set of steps
11190+
replace the [=usual constructor steps=].
11191+
1118911192
</div>
1119011193

1119111194

0 commit comments

Comments
 (0)