Function JSObject.makeError

Creates a JavaScript Error object, as if by invoking the built-in Error constructor.

static JSObject makeError (
  Machine machine,
  JSValue[] arguments...
);

Parameters

NameDescription
machineA Machine.
argumentsArguments to pass to the Error constructor.

Returns

A JSObject that is an Error.

Throws

JSException when the JS VM is aborted with the xsUnhandledExceptionExit status.