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