Function quickjs_runtime::quickjs_utils::objects::construct_object

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

construct a new instance of a constructor

§Safety

please ensure the passed JSContext is still valid