JSObject.makeRegExp constructor
JSObject.makeRegExp(
- JSContext context,
- JSValuePointer arguments, {
- JSValuePointer? exception,
Creates a JavaScript RegExp object, as if by invoking the built-in RegExp constructor.
arguments
(JSValueRef[]) A JSValue array of arguments to pass to the RegExp 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.
Implementation
JSObject.makeRegExp(
this.context,
JSValuePointer arguments, {
JSValuePointer? exception,
}) : this.pointer = JSObjectRef.jSObjectMakeRegExp(
context.pointer,
arguments.count,
arguments.pointer,
(exception ?? JSValuePointer(nullptr)).pointer);