Function mozjs::jsapi::JS::GetPromiseState

source ·
pub unsafe extern "C" fn GetPromiseState(
    promise: Handle<*mut JSObject>
) -> PromiseState
Expand description

Returns the given Promise’s state as a JS::PromiseState enum value.

Returns JS::PromiseState::Pending if the given object is a wrapper that can’t safely be unwrapped.