jSObjectCallAsFunction top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> thisObject, int argumentCount, Pointer<NativeType> arguments, Pointer<Pointer<NativeType>> exception) jSObjectCallAsFunction
final

Calls an object as a function. ctx (JSContextRef) The execution context to use. object (JSObjectRef) The JSObject to call as a function. thisObject (JSObjectRef) The object to use as "this," or NULL to use the global object as "this." argumentCount (size_t) An integer count of the number of arguments in arguments. arguments (JSValueRef[]) A JSValue array of arguments to pass to the function. Pass NULL if argumentCount is 0. exception (JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. @result (JSValueRef) The JSValue that results from calling object as a function, or NULL if an exception is thrown or object is not a function.

Implementation

final Pointer Function(Pointer ctx, Pointer object, Pointer thisObject,
        int argumentCount, Pointer arguments, Pointer<Pointer> exception)
    jSObjectCallAsFunction = JscFfi.lib
        .lookup<
            NativeFunction<
                Pointer Function(Pointer, Pointer, Pointer, Uint32, Pointer,
                    Pointer<Pointer>)>>('JSObjectCallAsFunction')
        .asFunction();