Function javascriptcore_sys::JSObjectCallAsFunction
[−]
[src]
pub unsafe extern "C" fn JSObjectCallAsFunction(
ctx: JSContextRef,
object: JSObjectRef,
thisObject: JSObjectRef,
argumentCount: usize,
arguments: *const JSValueRef,
exception: *mut JSValueRef
) -> JSValueRef
Calls an object as a function.
ctx: The execution context to use.object: TheJSObjectto call as a function.thisObject: The object to use asthis, orNULLto use the global object asthis.argumentCount: An integer count of the number of arguments inarguments.arguments: AJSValuearray of arguments to pass to the function. PassNULLifargumentCountis0.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns the JSValue that results from calling object as a function,
or NULL if an exception is thrown or object is not a function.