convertJSObjectConvertToTypeCallback function
JSValueRef
convertJSObjectConvertToTypeCallback(
- JSContextRef ctx,
- JSObjectRef object,
- int type,
- Pointer<
JSValueRef> exception, - JSValue fn(
- JSContext context,
- JSObject object,
- JSType type,
- JSException exception,
Implementation
JSValueRef convertJSObjectConvertToTypeCallback(
JSContextRef ctx,
JSObjectRef object,
int /*JSType*/ type,
Pointer<JSValueRef> exception,
JSValue Function(JSContext context, JSObject object, JSType type, JSException exception) fn,
) {
final JSContext context = JSContext(ctx);
return fn(context, JSObject(context, object), JSType.values[type], JSException(context, exception)).ref;
}