Function mozjs_sys::jsapi::JS::GetPromiseIsHandled

source ·
pub unsafe extern "C" fn GetPromiseIsHandled(
    promise: HandleObject,
) -> bool
Expand description

Returns whether the given promise’s rejection is already handled or not.

The caller must check the given promise is rejected before checking it’s handled or not.