Function javascriptcore_sys::JSObjectMakeError
[−]
[src]
pub unsafe extern "C" fn JSObjectMakeError(
ctx: JSContextRef,
argumentCount: usize,
arguments: *const JSValueRef,
exception: *mut JSValueRef
) -> JSObjectRef
Creates a JavaScript Error object, as if by invoking the
built-in Error constructor.
ctx: The execution context to use.argumentCount: An integer count of the number of arguments inarguments.arguments: AJSValuearray of arguments to pass to theErrorconstructor. PassNULLifargumentCountis0.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns a JSObject that is a Error.