JSValueIsInstanceOfConstructor top-level property
bool Function(JSContextRef ctx, JSValueRef value, JSObjectRef constructor, Pointer<JSValueRef> 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 bool Function(
JSContextRef ctx,
JSValueRef value,
JSObjectRef constructor,
Pointer<JSValueRef> exception,
)
JSValueIsInstanceOfConstructor =
kLookup<
NativeFunction<
Bool Function(
JSContextRef,
JSValueRef,
JSObjectRef,
Pointer<JSValueRef>,
)
>
>('JSValueIsInstanceOfConstructor').asFunction();