From 97a1e587bb4f0421a90bbb9d016cef3bb6479d16 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Dispatches an In various scenarios, the user agent can report an exception by firing an Runtime script errors
+
+
+
reportError
( e )error
event at the global object for the
+ given value e, in the same fashion as an unhandled exception.error
event at the Window
. If this event is not canceled,
then the error is considered not handled, and can be reported to the developer console.
The reportError(e)
method steps are to
+ report the exception e.
The ErrorEvent
interface is defined as follows:
[Exposed=(Window,Worker)]
@@ -95034,6 +95044,8 @@ interface mixin WindowOrWorkerGlobalScope {
readonly attribute boolean isSecureContext;
readonly attribute boolean crossOriginIsolated;
+ undefined reportError(any e);
+
// base64 utility methods
DOMString btoa(DOMString data);
ByteString atob(DOMString data);