Function mozjs_sys::jsapi::JS_CallFunctionValue

source ยท
pub unsafe extern "C" fn JS_CallFunctionValue(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    fval: Handle<Value>,
    args: *const HandleValueArray,
    rval: MutableHandle<Value>,
) -> bool
Expand description

Call a function, passing a this-value and arguments. This is the C++ equivalent of rval = Reflect.apply(fun, obj, args).

Implements: ES6 7.3.12 Call(F, V, [argumentsList]). Use this function to invoke the [[Call]] internal method.