JSObjectIsConstructor

Function JSObjectIsConstructor 

Source
pub unsafe extern "C-unwind" fn JSObjectIsConstructor(
    ctx: JSContextRef,
    object: JSObjectRef,
) -> bool
Available on crate features JSBase and JSObjectRef only.
Expand description

Tests whether an object can be called as a constructor.

Parameter ctx: The execution context to use.

Parameter object: The JSObject to test.

Returns: true if the object can be called as a constructor, otherwise false.

ยงSafety

  • ctx must be a valid pointer.
  • object must be a valid pointer.