Skip to content
SiteEmail

PromiseRejectionEvent

Module: JavaScript DOM API

#include <PromiseRejectionEvent.idl>

Inherits from Event

Name
PromiseRejectionEventPromiseRejectionEvent(DOMInternedString type, PromiseRejectionEventInit eventInitDict)
Name
readonly attribute Promise< any >promise
readonly attribute anyreason

Public Functions inherited from Event

Name
EventEvent(DOMInternedString type, optional EventInit initEvent)
voidstopPropagation()
voidpreventDefault()
voidinitEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg)
voidstopImmediatePropagation()

Public Attributes inherited from Event

Name
const unsigned shortNONE
const unsigned shortCAPTURING_PHASE
const unsigned shortAT_TARGET
const unsigned shortBUBBLING_PHASE
readonly attribute DOMStringtype
readonly attribute EventTargettarget
readonly attribute EventTargetcurrentTarget
readonly attribute unsigned shorteventPhase
readonly attribute booleanbubbles
readonly attribute booleancancelable
readonly attribute booleandefaultPrevented
readonly attribute booleancomposed
PromiseRejectionEvent PromiseRejectionEvent(
DOMInternedString type,
PromiseRejectionEventInit eventInitDict
)
readonly attribute Promise< any > promise;
readonly attribute any reason;