Function mozjs_sys::jsapi::JS::GetPromiseUserInputEventHandlingState
source · pub unsafe extern "C" fn GetPromiseUserInputEventHandlingState(
promise: HandleObject,
) -> PromiseUserInputEventHandlingState
Expand description
Returns the given Promise’s activation behavior state flag per above as a JS::PromiseUserInputEventHandlingState value. All promises are created with the DontCare state by default.
Returns JS::PromiseUserInputEventHandlingState::DontCare if the given object is a wrapper that can’t safely be unwrapped.