Documentation/ErrorEvent
classWORKER

ErrorEvent

js/worker.js:820
ErrorEvent(type, options)

Event carrying an uncaught Worker error. Trusted Worker error events dispatched by JSplitter are non-cancelable because handler presence itself determines whether the error is handled.

Parameters

NameTypeDescription
typestring
optionsoptionalObject
propertyWORKERreadonly

colno

js/worker.js:853
colno: number = 0

Source column associated with the error, or 0 when unavailable.

propertyWORKERreadonly

error

js/worker.js:861
error: *

Original thrown JavaScript value when it can be exposed to the receiving realm.

propertyWORKERreadonly

filename

js/worker.js:837
filename: string = ""

Script filename associated with the error when one is available. File-backed Workers report the basename, matching panel-script diagnostics.

propertyWORKERreadonly

lineno

js/worker.js:845
lineno: number = 0

One-based source line associated with the error, or 0 when unavailable.

propertyWORKERreadonly

message

js/worker.js:829
message: string = ""

Human-readable error message reported by the failing Worker script or callback.