diff --git a/packages/quickjs-emscripten-core/src/runtime.ts b/packages/quickjs-emscripten-core/src/runtime.ts index 61494877..724b8baf 100644 --- a/packages/quickjs-emscripten-core/src/runtime.ts +++ b/packages/quickjs-emscripten-core/src/runtime.ts @@ -79,7 +79,6 @@ export class QuickJSRuntime extends UsingDisposable implements Disposable { * associated with the runtime. * * If this runtime was created stand-alone, this may or may not contain a context. - * A context here may be allocated if one is needed by the runtime, eg for {@link computeMemoryUsage}. */ public context: QuickJSContext | undefined @@ -416,14 +415,6 @@ export class QuickJSRuntime extends UsingDisposable implements Disposable { return `${this.constructor.name} { rt: ${this.rt.value} }` } - private getSystemContext() { - if (!this.context) { - // We own this context and should dispose of it. - this.context = this.scope.manage(this.newContext()) - } - return this.context - } - private cToHostCallbacks: RuntimeCallbacks = { shouldInterrupt: (rt) => { if (rt !== this.rt.value) {