Function quickjs_runtime::quickjs_utils::functions::is_constructor

source ·
pub unsafe fn is_constructor(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
) -> bool
Expand description

see if an Object is an instance of Function and is a constructor (can be instantiated with new keyword)

§Safety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid