PromiseRejectionEvent

Module: JavaScript DOM API

#include <PromiseRejectionEvent.idl>

Inherits from Event

Public Functions

Name
PromiseRejectionEventPromiseRejectionEvent(DOMInternedString type, PromiseRejectionEventInit eventInitDict)

Public Attributes

Name
readonly attribute Promise< any >promise
readonly attribute anyreason

Additional inherited members

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

Public Functions Documentation

function PromiseRejectionEvent

PromiseRejectionEvent PromiseRejectionEvent(
    DOMInternedString type,
    PromiseRejectionEventInit eventInitDict
)

Public Attributes Documentation

variable promise

readonly attribute Promise< any > promise;

variable reason

readonly attribute any reason;