pub unsafe extern "C-unwind" fn JSObjectCallAsConstructor(
ctx: JSContextRef,
object: JSObjectRef,
argument_count: usize,
arguments: *mut JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRefAvailable on crate features
JSBase and JSObjectRef only.Expand description
Calls an object as a constructor.
Parameter ctx: The execution context to use.
Parameter object: The JSObject to call as a constructor.
Parameter argumentCount: An integer count of the number of arguments in arguments.
Parameter arguments: A JSValue array of arguments to pass to the constructor. Pass NULL if argumentCount is 0.
Parameter exception: A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
Returns: The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor.
ยงSafety
ctxmust be a valid pointer.objectmust be a valid pointer.argumentsmust be a valid pointer.exceptionmust be a valid pointer.