jSValueIsInstanceOfConstructor top-level property

int Function(Pointer<NativeType> ctx, Pointer<NativeType> value, Pointer<NativeType> constructor, Pointer<NativeType> exception) jSValueIsInstanceOfConstructor
final

Tests whether a JavaScript value is an object constructed by a given constructor, as compared by the JS instanceof operator. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to test. constructor (JSObjectRef) The constructor to test against. 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 (bool) true if value is an object constructed by constructor, as compared by the JS instanceof operator, otherwise false.

Implementation

final int Function(
    Pointer ctx,
    Pointer value,
    Pointer constructor,
    Pointer
        exception) jSValueIsInstanceOfConstructor = jscLib
    .lookup<NativeFunction<Int8 Function(Pointer, Pointer, Pointer, Pointer)>>(
        'JSValueIsInstanceOfConstructor')
    .asFunction();