quickjs_runtime::quickjs_utils::functions

Function 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