jSObjectMakeError top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, int argumentCount, Pointer<Pointer<NativeType>> arguments, Pointer<Pointer<NativeType>> exception) jSObjectMakeError
final

Creates a JavaScript Error object, as if by invoking the built-in Error constructor. ctx (JSContextRef) The execution context to use. argumentCount (size_t) An integer count of the number of arguments in arguments. arguments (JSValueRef[]) A JSValue array of arguments to pass to the Error Constructor. 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 (JSObjectRef) A JSObject that is a Error.

Implementation

final Pointer Function(Pointer ctx, int argumentCount,
        Pointer<Pointer> arguments, Pointer<Pointer> exception)
    jSObjectMakeError = jscLib
        .lookup<
            NativeFunction<
                Pointer Function(Pointer, Uint32, Pointer,
                    Pointer<Pointer>)>>('JSObjectMakeError')
        .asFunction();