JSObjectMakeRegExp top-level property

JSObjectRef Function(JSContextRef ctx, int argumentCount, Pointer<JSValueRef> arguments, Pointer<JSValueRef> exception) JSObjectMakeRegExp
final

Creates a JavaScript RegExp object, as if by invoking the built-in RegExp constructor. ctx (JSContextRef) The execution context to use. argumentCount (size_t) An integer count of the number of arguments in arguments. 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. @result (JSObjectRef) A JSObject that is a RegExp.

Implementation

final JSObjectRef Function(
  JSContextRef ctx,
  int argumentCount,
  Pointer<JSValueRef> arguments,
  Pointer<JSValueRef> exception,
)
JSObjectMakeRegExp =
    kLookup<
      NativeFunction<
        JSObjectRef Function(
          JSContextRef,
          Size,
          Pointer<JSValueRef>,
          Pointer<JSValueRef>,
        )
      >
    >('JSObjectMakeRegExp').asFunction();