script_bindings::utils

Function generic_method

Source
pub(crate) unsafe extern "C" fn generic_method<const EXCEPTION_TO_REJECTION: bool>(
    cx: *mut JSContext,
    argc: c_uint,
    vp: *mut JSVal,
) -> bool
Expand description

Generic method of IDL interface.

§Safety

cx must point to a valid, non-null JSContext. vp must point to a VALID, non-null JSVal.