convertJSObjectGetPropertyNamesCallback function

void convertJSObjectGetPropertyNamesCallback(
  1. JSContextRef ctx,
  2. JSObjectRef object,
  3. JSPropertyNameAccumulatorRef propertyNames,
  4. void fn(
    1. JSContext context,
    2. JSObject object,
    3. JSPropertyNameAccumulator propertyNames
    ),
)

Implementation

void convertJSObjectGetPropertyNamesCallback(
  JSContextRef ctx,
  JSObjectRef object,
  JSPropertyNameAccumulatorRef propertyNames,
  void Function(JSContext context, JSObject object, JSPropertyNameAccumulator propertyNames) fn,
) {
  final JSContext context = JSContext(ctx);
  return fn(context, JSObject(context, object), JSPropertyNameAccumulator(propertyNames));
}