Function mozjs_sys::jsapi::JS::GetPromiseState
source · pub unsafe extern "C" fn GetPromiseState(
promise: HandleObject,
) -> 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.