Function js::jsapi::Construct1
[−]
[src]
pub unsafe extern "C" fn Construct1(
cx: *mut JSContext,
fun: HandleValue,
args: *const HandleValueArray,
objp: MutableHandleObject
) -> bool
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.