Function quickjs_runtime::quickjs_utils::functions::call_constructor
source · [−]pub unsafe fn call_constructor(
context: *mut JSContext,
constructor_ref: &JSValueRef,
arguments: &[JSValueRef]
) -> Result<JSValueRef, JsError>
Expand description
call a constructor (instantiate an Object)
Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid