reason property

JSAny? get reason

The PromiseRejectionEvent reason read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject(). This in theory provides information about why the promise was rejected.

Implementation

external JSAny? get reason;