jSObjectHasProperty top-level property

int Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyName) jSObjectHasProperty
final

Tests whether an object has a given property. ctx (JSContextRef) object (JSObjectRef) The JSObject to test. propertyName (JSStringRef) A JSString containing the property's name. @result (bool) true if the object has a property whose name matches propertyName, otherwise false.

Implementation

final int Function(Pointer ctx, Pointer object, Pointer propertyName)
    jSObjectHasProperty = jscLib
        .lookup<NativeFunction<Int8 Function(Pointer, Pointer, Pointer)>>(
            'JSObjectHasProperty')
        .asFunction();