pub unsafe extern "C-unwind" fn JSObjectMakeRegExp(
ctx: JSContextRef,
argument_count: usize,
arguments: *mut JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRef
Available on crate features
JSObjectRef
and JSBase
only.Expand description
Creates a JavaScript RegExp object, as if by invoking the built-in RegExp 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 RegExp 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 a RegExp.