Method

JavaScriptCoreValuefunction_callv

Declaration [src]

JSCValue*
jsc_value_function_callv (
  JSCValue* value,
  guint n_parameters,
  JSCValue** parameters
)

Description [src]

Call function referenced by value, passing the given parameters. If n_parameters is 0 no parameters will be passed to the function.

This function always returns a JSCValue, in case of void functions a JSCValue referencing undefined is returned.

Parameters

n_parameters guint
 

The number of parameters.

parameters An array of JSCValue
 

The JSCValues to pass as parameters to the function, or NULL.

 The argument can be NULL.
 The length of the array is specified in the n_parameters argument.
 The data is owned by the caller of the function.

Return value

Returns: JSCValue
 

A JSCValue with the return value of the function.

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