@@ -14562,13 +14562,13 @@ fragment:
14562
14562
14563
14563
dictionary DOMExceptionOptions {
14564
14564
any cause;
14565
- DOMString name;
14565
+ DOMString name = "Error" ;
14566
14566
};
14567
14567
14568
14568
[Exposed=(Window,Worker),
14569
14569
Serializable]
14570
14570
interface DOMException { // but see below note about ECMAScript binding
14571
- constructor(optional DOMString message = "", optional (DOMString or DOMExceptionOptions) nameOrOptions = "Error" );
14571
+ constructor(optional DOMString message = "", optional (DOMExceptionOptions or DOMString) options = {} );
14572
14572
readonly attribute DOMString name;
14573
14573
readonly attribute DOMString message;
14574
14574
readonly attribute unsigned short code;
@@ -14614,13 +14614,10 @@ The
14614
14614
constructor steps are:
14615
14615
14616
14616
1. Set [=this=]'s [=DOMException/message=] to |message|.
14617
- 1. If |nameOrOptions| is a String, set [=this=]'s [=DOMException/name=] to
14618
- |nameOrOptions|.
14619
- 1. Else,
14620
- 1. If |nameOrOptions|'name is present, set [=this=]'s [=DOMException/name=]
14621
- to |nameOrOptions|'s name, else set [=this=]'s [=DOMException/name=]
14622
- to "Error".
14623
- 1. Perform [=?=] <a abstract-op>InstallErrorCause</a>([=this=], |nameOrOptions|).
14617
+ 1. If |options| is a string, then set [=this=]'s [=DOMException/name=] to |options|.
14618
+ 1. Otherwise,
14619
+ 1. Set [=this=]'s [=DOMException/name=] to |options|["{{DOMExceptionOptions/name}}"].
14620
+ 1. Perform [=?=] <a abstract-op>InstallErrorCause</a>([=this=], |options|).
14624
14621
14625
14622
The <dfn attribute for="DOMException"><code>name</code></dfn> getter steps are to return
14626
14623
[=this=]'s [=DOMException/name=].
0 commit comments