JSRuntime.create2 constructor

JSRuntime.create2(
  1. JSMallocFunctions jsMallocFunctions,
  2. Pointer<Void> userOpaque, {
  3. bool autoDispose = true,
})

Implementation

factory JSRuntime.create2(
  JSMallocFunctions jsMallocFunctions,
  Pointer<Void> userOpaque, {
  bool autoDispose = true,
}) => JSRuntime(
  JS_NewRuntime2(jsMallocFunctions.ref, userOpaque),
  autoDispose: autoDispose,
);