pub unsafe extern "C-unwind" fn JSObjectMakeError(
ctx: JSContextRef,
argument_count: usize,
arguments: *mut JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRefAvailable on crate features
JSBase and JSObjectRef only.Expand description
Creates a JavaScript Error object, as if by invoking the built-in Error constructor.
Parameter ctx: The execution context to use.
Parameter argumentCount: An integer count of the number of arguments in arguments.
Parameter arguments: A JSValue array of arguments to pass to the Error Constructor. Pass NULL if argumentCount is 0.
Parameter exception: A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
Returns: A JSObject that is an Error.
ยงSafety
ctxmust be a valid pointer.argumentsmust be a valid pointer.exceptionmust be a valid pointer.