Value.objectInvokeMethodv

Invoke method with @name on object referenced by @value, passing the given @parameters. If @n_parameters is 0 no parameters will be passed to the method. The object instance will be handled automatically even when the method is a custom one registered with jsc_class_add_method(), so it should never be passed explicitly as parameter of this function.

This function always returns a #JSCValue, in case of void methods a #JSCValue referencing <function>undefined</function> is returned.

class Value
objectInvokeMethodv
(
string name
,)

Parameters

name string

the method name

parameters Value[]

the #JSCValue<!-- -->s to pass as parameters to the method, or %NULL

Return Value

Type: Value

a #JSCValue with the return value of the method.

Meta