Skip to content

Commit 36699d8

Browse files
committed
Assertions for output of constructor description.
Fixes whatwg#206.
1 parent dfd7555 commit 36699d8

File tree

2 files changed

+32
-38
lines changed

2 files changed

+32
-38
lines changed

index.bs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10363,17 +10363,12 @@ and |newTarget| as the NewTarget value, the following steps must be taken:
1036310363
[=overload resolution algorithm=].
1036410364
1. Let |R| be the result of performing the actions listed in the description of
1036510365
|constructor| with |values| as the argument values.
10366+
1. Assert: |R| is an object that implements |I|.
10367+
1. Assert: |R|.\[[Realm]] is equal to |F|.\[[Realm]].
1036610368
1. Return the result of [=converted to an ECMAScript value|converting=]
10367-
|R| to an ECMAScript [=interface type=] value
10368-
|I|.
10369+
|R| to an ECMAScript [=interface type=] value |I|.
1036910370
</ol>
1037010371

10371-
If evaluating the [=function object=] |F| returns normally,
10372-
then it must return an object that implements interface |I|.
10373-
This object also must be
10374-
associated with the ECMAScript global environment associated
10375-
with |I|.
10376-
1037710372
Interface objects for non-callback interfaces must have a property named “length”
1037810373
with attributes <span class="descriptor">{ \[[Writable]]: <emu-val>false</emu-val>, \[[Enumerable]]: <emu-val>false</emu-val>, \[[Configurable]]: <emu-val>true</emu-val> }</span>
1037910374
whose value is a <emu-val>Number</emu-val>.

0 commit comments

Comments
 (0)