JSObject *JS_NewArrayObject()

Usage

JSObject *JS_NewArrayObject(JSContext *cx, unsigned int length [, jsval *v]) 

Description

Method; creates a new object that contains an array of JSVals.

Arguments

JSContext *cx, unsigned int length, jsval *v

Returns

A pointer to a new array object or the value null upon failure.