Constructor

WPEJavaScriptCoreValuenew_array

Declaration [src]

JSCValue*
jsc_value_new_array (
  JSCContext* context,
  GType first_item_type,
  ...
)

Description [src]

Create a new JSCValue referencing an array with the given items. If first_item_type is G_TYPE_NONE an empty array is created.

This constructor is not directly available to language bindings

Parameters

context JSCContext
 

A JSCContext.

 The data is owned by the caller of the function.
first_item_type GType
 

GType of first item, or G_TYPE_NONE.

...
 

Value of the first item, followed optionally by more type/value pairs, followed by G_TYPE_NONE.

Return value

Returns: JSCValue
 

A JSCValue.

 The caller of the function takes ownership of the data, and is responsible for freeing it.