Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
- Creates a
PromiseRejectionEventevent with the given parameters.
Also inherits properties from its parent
Promisewhich resulted in rejection.
- A value or
Objectindicating why the promise was rejected, as passed to
No specific methods; inherits methods from its parent
Promiseis rejected but there is no rejection handler to deal with the rejection.
Promiseis rejected, and after the rejection is handled by the promise's rejection handling code.
|WHATWG HTML Living Standard
The definition of 'PromiseRejectionEvent' in that specification.
|Firefox Mobile (Gecko)
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.