channelDispacher function

Pointer<JSValue>? channelDispacher(
  1. Pointer<JSContext> ctx,
  2. int type,
  3. Pointer<JSValue> argv
)

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);
}