@@ -13538,8 +13538,9 @@ the realm given as an argument.
13538
13538
1. Let |targetRealm| be [=?=] [$GetFunctionRealm$](|newTarget|).
13539
13539
1. Set |prototype| to the [=interface prototype object=] for |interface| in
13540
13540
|targetRealm|.
13541
- 1. Let |instance| be [$MakeBasicObject$](
13542
- « \[[Prototype]], \[[Extensible]], \[[Realm]], \[[PrimaryInterface]] »).
13541
+ 1. Let |slots| be « \[[Prototype]], \[[Extensible]], \[[Realm]], \[[PrimaryInterface]] ».
13542
+ 1. If |interface| is {{DOMException}}, append \[[ErrorData]] to |slots|.
13543
+ 1. Let |instance| be [$MakeBasicObject$](|slots|).
13543
13544
1. Set |instance|.\[[Realm]] to |realm|.
13544
13545
1. Set |instance|.\[[PrimaryInterface]] to |interface|.
13545
13546
1. Set |instance|.\[[Prototype]] to |prototype|.
@@ -14553,6 +14554,7 @@ The [=class string=] of a [=namespace object=] is the [=namespace=]'s [=identifi
14553
14554
In the JavaScript binding, the [=interface prototype object=] for {{DOMException}}
14554
14555
has its \[[Prototype]] [=/internal slot=] set to the intrinsic object {{%Error.prototype%}},
14555
14556
as defined in the [=create an interface prototype object=] abstract operation.
14557
+ It also has an \[[ErrorData]] slot, like all built-in exceptions.
14556
14558
14557
14559
Additionally, if an implementation gives native {{Error}} objects special powers or
14558
14560
nonstandard properties (such as a <code>stack</code> property),
0 commit comments