The PromiseRejectionEvent.promise
read-only property indicates the JavaScript Promise
which has been rejected. You can examine the event's PromiseRejectionEvent.reason
property to learn why the promise was rejected.
Syntax
promise = PromiseRejectionEvent.promise
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'PromiseRejectionEvent.promise' in that specification. |
Living Standard | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 49 | No support | No support | No support | No support |