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