Documentation/PromiseRejectionEvent
classWORKER

PromiseRejectionEvent

js/worker.js:870
PromiseRejectionEvent(type, options)

Event used for unhandled and later-handled Worker Promise rejections.

Parameters

NameTypeDescription
typestring
optionsObject
propertyWORKERreadonly

promise

js/worker.js:879
promise: Promise

Promise whose rejection triggered this event.

propertyWORKERreadonly

reason

js/worker.js:887
reason: *

Rejection reason associated with promise.