pub fn new_native_function_data_q(
    q_ctx: &QuickJsRealmAdapter,
    func: JSCFunctionData,
    name: &str,
    arg_count: i32,
    data: JSValueRef
) -> Result<JSValueRef, JsError>
Expand description

create a new Function object which calls a native method (with data)