Skip to content

Commit 7930b7a

Browse files
committed
Editorial: Resolve type mismatch when initializing a class instance without a constructor
1 parent b6f76ea commit 7930b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6989,7 +6989,7 @@ <h1>
69896989
<h1>
69906990
InitializeInstanceElements (
69916991
_O_: an Object,
6992-
_constructor_: an ECMAScript function object,
6992+
_constructor_: an ECMAScript function object or a built-in function object,
69936993
): either a normal completion containing ~unused~ or a throw completion
69946994
</h1>
69956995
<dl class="header">
@@ -25241,7 +25241,7 @@ <h1>
2524125241
1. Let _result_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Object.prototype%"*).
2524225242
1. Perform ? InitializeInstanceElements(_result_, _F_).
2524325243
1. Return NormalCompletion(_result_).
25244-
1. Let _F_ be CreateBuiltinFunction(_defaultConstructor_, 0, _className_, « [[ConstructorKind]], [[SourceText]] », the current Realm Record, _constructorParent_).
25244+
1. Let _F_ be CreateBuiltinFunction(_defaultConstructor_, 0, _className_, « [[ConstructorKind]], [[SourceText]], [[PrivateMethods]], [[Fields]] », the current Realm Record, _constructorParent_).
2524525245
1. Else,
2524625246
1. Let _constructorInfo_ be ! DefineMethod of _constructor_ with arguments _proto_ and _constructorParent_.
2524725247
1. Let _F_ be _constructorInfo_.[[Closure]].

0 commit comments

Comments
 (0)