pub unsafe extern "C-unwind" fn JSObjectMakeArray(
ctx: JSContextRef,
argument_count: usize,
arguments: *mut JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRefAvailable on crate features
JSBase and JSObjectRef only.Expand description
Creates a JavaScript Array object.
Parameter ctx: The execution context to use.
Parameter argumentCount: An integer count of the number of arguments in arguments.
Parameter arguments: A JSValue array of data to populate the Array with. 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: A JSObject that is an Array.
The behavior of this function does not exactly match the behavior of the built-in Array constructor. Specifically, if one argument is supplied, this function returns an array with one element.
ยงSafety
ctxmust be a valid pointer.argumentsmust be a valid pointer.exceptionmust be a valid pointer.