JSObjectCallAsConstructor top-level property
JSObjectRef Function(JSContextRef ctx, JSObjectRef object, int argumentCount, Pointer<JSValueRef> arguments, Pointer<JSValueRef> exception)
JSObjectCallAsConstructor
final
Calls an object as a constructor.
ctx
(JSContextRef) The execution context to use.
object
(JSObjectRef) The JSObject to call as a constructor.
argumentCount
(size_t) An integer count of the number of arguments in arguments.
arguments
(JSValueRef[]) A JSValue array of arguments to pass to the 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) The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor.
Implementation
final JSObjectRef Function(
JSContextRef ctx,
JSObjectRef object,
int argumentCount,
Pointer<JSValueRef> arguments,
Pointer<JSValueRef> exception,
)
JSObjectCallAsConstructor =
kLookup<
NativeFunction<
JSObjectRef Function(
JSContextRef,
JSObjectRef,
Size,
Pointer<JSValueRef>,
Pointer<JSValueRef>,
)
>
>('JSObjectCallAsConstructor').asFunction();