pub unsafe extern "C" fn JSObjectMakeArray(
ctx: JSContextRef,
argumentCount: usize,
arguments: *const JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRef
Expand description
Creates a JavaScript Array object.
ctx
: The execution context to use.argumentCount
: An integer count of the number of arguments inarguments
.arguments
: AJSValueRef
array of data to populate theArray
with. PassNULL
ifargumentCount
is0
.exception
: A pointer to aJSValueRef
in which to store an exception, if any. PassNULL
if you do not care to store an exception.
Returns a JSObjectRef
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.