Function javascriptcore_sys::JSObjectMakeArray [] [src]

pub unsafe extern "C" fn JSObjectMakeArray(
    ctx: JSContextRef,
    argumentCount: usize,
    arguments: *const JSValueRef,
    exception: *mut JSValueRef
) -> JSObjectRef

Creates a JavaScript Array object.

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.