convertJSObjectHasPropertyCallback function

bool convertJSObjectHasPropertyCallback(
  1. JSContextRef ctx,
  2. JSObjectRef object,
  3. JSStringRef propertyName,
  4. bool fn(
    1. JSContext context,
    2. JSObject object,
    3. JSString propertyName
    ),
)

Implementation

bool convertJSObjectHasPropertyCallback(
  JSContextRef ctx,
  JSObjectRef object,
  JSStringRef propertyName,
  bool Function(JSContext context, JSObject object, JSString propertyName) fn,
) {
  final JSContext context = JSContext(ctx);
  return fn(context, JSObject(context, object), JSString(propertyName));
}