Skip to main content

JS_Invoke

Function JS_Invoke 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_Invoke( ctx: *mut JsContext, this_val: JsValue, atom: Atom, argc: c_int, argv: *const JsValue, ) -> JsValue
Expand description

JS_Invoke: read this_val[atom] and call it.

One function rather than two calls, because the read and the call have to happen against the same receiver — splitting them is what made the reference need a second lookup.

§Safety

this_val must be live; argv must point at argc live values.