jSObjectMake top-level property
data is set on the created object before the intialize methods in its class chain are called. This enables the initialize methods to retrieve and manipulate data through JSObjectGetPrivate.
ctx (JSContextRef) The execution context to use.
jsClass (JSClassRef) The JSClass to assign to the object. Pass NULL to use the default object class.
data (void*) A void* to set as the object's private data. Pass NULL to specify no private data.
@result (JSObjectRef) A JSObject with the given class and private data.
final Pointer Function(Pointer ctx, Pointer jsClass, Pointer data) jSObjectMake = jscLib .lookup<NativeFunction<Pointer Function(Pointer, Pointer, Pointer)>>( 'JSObjectMake') .asFunction();