Value.objectInvokeMethod

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 javascriptcore.class_.Class.addMethod, 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
objectInvokeMethod

Parameters

name string

the method name

parameters javascriptcore.value.Value[]

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

Return Value

Type: javascriptcore.value.Value

a #JSCValue with the return value of the method.