channelDispacher function
Implementation
Pointer<JSValue>? channelDispacher(
Pointer<JSContext> ctx,
int type,
Pointer<JSValue> argv,
) {
final rt = type == JSChannelType.FREE_OBJECT
? ctx.cast<JSRuntime>()
: jsGetRuntime(ctx);
return runtimeOpaques[rt]?._channel(ctx, type, argv);
}