pub unsafe fn construct_object(
    ctx: *mut JSContext,
    constructor_ref: &JSValueRef,
    args: &[&JSValueRef]
) -> Result<JSValueRef, JsError>
Expand description

construct a new instance of a constructor

Safety

please ensure the passed JSContext is still valid