Function mozjs::jsapi::Construct1

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

Invoke a constructor. This is the C++ equivalent of rval = new fun(...args).

Implements: ES6 7.3.13 Construct(F, [argumentsList], [newTarget]), when newTarget is omitted.