free method

void free()

Releases a global JavaScript execution context. ctx (JSGlobalContext) The JSGlobalContext to release.

Implementation

void free() {
  detach();
  if (_ref != nullptr) {
    return JSGlobalContextRelease(_ref);
  }
  globalObject.free();
}