Skip to content

Commit 6f32dc2

Browse files
annevkdomenic
authored andcommitted
An exception is not always an object (e.g., throw 7)
Fixes whatwg#1720.
1 parent 56ea222 commit 6f32dc2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87826,10 +87826,10 @@ document.querySelector("button").addEventListener("click", bound);
8782687826
<!--INSERT FINGERPRINT-->
8782787827
</p></li>
8782887828

87829-
<li><p>Let <var>error object</var> be the object that represents the error: in the case of an
87830-
uncaught exception, that would be the object that was thrown; in the case of a JavaScript error
87829+
<li><p>Let <var>errorValue</var> be the value that represents the error: in the case of an
87830+
uncaught exception, that would be the value that was thrown; in the case of a JavaScript error
8783187831
that would be an <code data-x="idl-Error">Error</code> object. If there is no corresponding
87832-
object, then the null value must be used instead.</p></li>
87832+
value, then the null value must be used instead.</p></li>
8783387833

8783487834
<li>
8783587835

@@ -87855,8 +87855,9 @@ document.querySelector("button").addEventListener("click", bound);
8785587855

8785687856
</li>
8785787857

87858-
<li><p>If <var>script</var> has <span>muted errors</span>, then set <var>message</var> to "<code data-x="">Script error.</code>", set <var>location</var>
87859-
to the empty string, set <var>line</var> and <var>col</var> to 0, and set <var>error object</var> to null.</p></li>
87858+
<li><p>If <var>script</var> has <span>muted errors</span>, then set <var>message</var> to "<code
87859+
data-x="">Script error.</code>", <var>location</var> to the empty string, <var>line</var> and
87860+
<var>col</var> to 0, and <var>errorValue</var> to null.</p></li>
8786087861

8786187862
<li><p>Let <var>event</var> be a new <span data-x="concept-events-trusted">trusted</span>
8786287863
<code>ErrorEvent</code> object that does not bubble but is cancelable, and which has the event
@@ -87875,7 +87876,7 @@ document.querySelector("button").addEventListener("click", bound);
8787587876
attribute to <var>col</var>.</p></li>
8787687877

8787787878
<li><p>Initialise <var>event</var>'s <code data-x="dom-ErrorEvent-error">error</code>
87878-
attribute to <var>error object</var>.</p></li>
87879+
attribute to <var>errorValue</var>.</p></li>
8787987880

8788087881
<li><p><span data-x="concept-event-dispatch">Dispatch</span> <var>event</var> at <var>target</var>.</p></li>
8788187882

0 commit comments

Comments
 (0)