Function quickjs_runtime::quickjs_utils::functions::call_function

source ·
pub unsafe fn call_function(
    context: *mut JSContext,
    function_ref: &QuickJsValueAdapter,
    arguments: &[QuickJsValueAdapter],
    this_ref_opt: Option<&QuickJsValueAdapter>,
) -> Result<QuickJsValueAdapter, JsError>
Expand description

call a function

§Safety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid