Skip to content

Commit

Permalink
Introducing self.reportException()
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed May 5, 2016
1 parent 24ab060 commit cfc1005
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -88136,6 +88136,21 @@ dictionary <dfn>ErrorEventInit</dfn> : <span>EventInit</span> {
it was initialised 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>

<h6>The <code data-x="dom-reportException">reportException()</code> method</h6>

<dl class="domintro">
<dt>self . <code subdfn data-x="dom-reportException">reportException</code>( <var>exception</var> )</dt>
<dd><p>Dispatches an <code data-x="event-error">error</code> event at self.</p></dd>
</dl>

<div w-nodev>

<p>The <dfn data-x="dom-reportException"><code>reportException(<var>exception</var>)</code></dfn>
method, when invoked, must <span>report an exception</span> with <var>exception</var>.</p>

</div>


<h5>Unhandled promise rejections</h5>

<p>In addition to synchronous <a href="#runtime-script-errors">runtime script errors</a>, scripts
Expand Down Expand Up @@ -89610,6 +89625,9 @@ interface <dfn>DocumentAndElementEventHandlers</dfn> {
interface <dfn>WindowOrWorkerGlobalScope</dfn> {
[Replaceable] readonly attribute USVString <span data-x="dom-origin">origin</span>;

// report an exception
void <span data-x="dom-reportException">reportException</span>(any exception);

// base64 utility methods
DOMString <span data-x="dom-btoa">btoa</span>(DOMString data);
DOMString <span data-x="dom-atob">atob</span>(DOMString data);
Expand Down

0 comments on commit cfc1005

Please sign in to comment.