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 3, 2022
1 parent 94a9b1d commit dd8bbaf
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 @@ -94923,7 +94923,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 @@ -94943,8 +94943,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 dd8bbaf

Please sign in to comment.