jsNewClass function

int jsNewClass(
  1. Pointer<JSContext> ctx,
  2. String name
)

Implementation

int jsNewClass(
  Pointer<JSContext> ctx,
  String name,
) {
  final utf8name = name.toNativeUtf8();
  final val = _jsNewClass(
    ctx,
    utf8name,
  );
  malloc.free(utf8name);
  return val;
}