pub fn call_setup<D, T, R>(
cx: &mut JSContext,
callback: &T,
handling: ExceptionHandling,
f: impl FnOnce(&mut JSContext) -> R,
) -> Rwhere
D: DomTypes,
T: CallbackContainer<D>,Expand description
A function wrapper that performs whatever setup we need to safely make a call.
https://webidl.spec.whatwg.org/#es-invoking-callback-functions