free method

void free()

Implementation

void free() {
  detach();
  if (_ref != nullptr) {
    JS_FreeRuntime(_ref);
  }
  _hostPromiseRejectionTrackerNC?.close();
  _interruptHandlerNC?.close();
  _markFuncNC?.close();
  _moduleLoaderFuncNC?.close();
  _moduleNormalizeFuncNC?.close();
}