Name
ErrorEvent — an uncaught exception from a worker thread
Inherits from
Event
Synopsis
When an uncaught exception occurs in a Worker thread, and the exception is not handled by
the onerror
function in the WorkerGlobalScope, that exception causes a
nonbubbling error event to be triggered on the Worker object. The
event has an ErrorEvent object associated with it to provide details
about the exception that occurred. Calling preventDefault()
on the ErrorEvent object
(or returning false
from the
event handler) will prevent the error from propagating further to
containing threads and may also prevent it from being displayed in
an error console.
Properties
readonly string
filename
The URL of the JavaScript file in which the exception was originally thrown.
readonly unsigned long
lineno
The line number within that file at which the exception was thrown.
readonly string
message
A message describing the exception.
Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.