Function quickjs_runtime::quickjs_utils::functions::new_native_function_data_q
source ยท pub fn new_native_function_data_q(
q_ctx: &QuickJsRealmAdapter,
func: JSCFunctionData,
name: &str,
arg_count: i32,
data: QuickJsValueAdapter,
) -> Result<QuickJsValueAdapter, JsError>
Expand description
create a new Function object which calls a native method (with data)