pub unsafe fn call_constructor(
context: *mut JSContext,
constructor_ref: &QuickJsValueAdapter,
arguments: &[QuickJsValueAdapter],
) -> Result<QuickJsValueAdapter, JsError>
Expand description
call a constructor (instantiate an Object)
ยงSafety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid