script::dom::bindings::utils

Function generic_method

Source
pub(crate) unsafe extern "C" fn generic_method<const EXCEPTION_TO_REJECTION: bool>(
    cx: *mut JSContext,
    argc: u32,
    vp: *mut Value,
) -> 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.