jSValueIsObjectOfClass top-level property
int Function(Pointer<NativeType> ctx, Pointer<NativeType> value, Pointer<NativeType> jsClass)
jSValueIsObjectOfClass
final
Tests whether a JavaScript value is an object with a given class in its class chain.
ctx
(JSContextRef) The execution context to use.
value
(JSValueRef) The JSValue to test.
jsClass
(JSClassRef) The JSClass to test against.
@result
(bool) true if value is an object and has jsClass in its class chain, otherwise false.
Implementation
final int Function(Pointer ctx, Pointer value, Pointer jsClass)
jSValueIsObjectOfClass = JscFfi.lib
.lookup<NativeFunction<Int8 Function(Pointer, Pointer, Pointer)>>(
'JSValueIsObjectOfClass')
.asFunction();