Function mozjs::jsapi::SetPromiseUserInputEventHandlingState
source · pub unsafe extern "C" fn SetPromiseUserInputEventHandlingState(
promise: Handle<*mut JSObject>,
state: PromiseUserInputEventHandlingState,
) -> bool
Expand description
Sets the given Promise’s activation behavior state flag per above as a JS::PromiseUserInputEventHandlingState value.
Returns false if the given object is a wrapper that can’t safely be unwrapped.