Skip to main content

JS_CallConstructor2

Function JS_CallConstructor2 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_CallConstructor2( ctx: *mut JsContext, func_obj: JsValue, new_target: JsValue, argc: c_int, argv: *const JsValue, ) -> JsValue
Expand description

JS_CallConstructor2: Reflect.construct(func_obj, args, new_target).

ยงSafety

func_obj and new_target must be live; argv must point at argc live values.