Skip to content

Commit

Permalink
Remove ErrorEventInit's error default
Browse files Browse the repository at this point in the history
This ensures that ErrorEvent has equivalent expressiveness to reportError().

Fixes #7853.
  • Loading branch information
annevk committed Jun 7, 2022
1 parent afcf6e5 commit 0325231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -94896,7 +94896,7 @@ dictionary <dfn dictionary>ErrorEventInit</dfn> : <span>EventInit</span> {
USVString filename = "";
unsigned long lineno = 0;
unsigned long colno = 0;
any error = null;
any error;
};</code></pre>

<p>The <dfn attribute for="ErrorEvent"><code data-x="dom-ErrorEvent-message">message</code></dfn>
Expand All @@ -94916,8 +94916,9 @@ dictionary <dfn dictionary>ErrorEventInit</dfn> : <span>EventInit</span> {
error occurred in the script.</p>

<p>The <dfn attribute for="ErrorEvent"><code data-x="dom-ErrorEvent-error">error</code></dfn>
attribute must return the value it was initialized to. Where appropriate, it is set to the object
representing the error (e.g., the exception object in the case of an uncaught DOM exception).</p>
attribute must return the value it was initialized to. It must initially be initialized to
undefined. Where appropriate, it is set to the object representing the error (e.g., the exception
object in the case of an uncaught exception).</p>

</div>

Expand Down

0 comments on commit 0325231

Please sign in to comment.