convertJSObjectGetPropertyNamesCallback function
void
convertJSObjectGetPropertyNamesCallback(
- JSContextRef ctx,
- JSObjectRef object,
- JSPropertyNameAccumulatorRef propertyNames,
- void fn(
- JSContext context,
- JSObject object,
- 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));
}