Skip to content

Commit 1a1dcfa

Browse files
committed
Add [Symbol.dispose] impl to pyproxy
1 parent fedfb76 commit 1a1dcfa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/_pyodide_core/pyproxy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ class PyProxy {
442442
const { message: m, destroyRoundtrip: d } = options;
443443
Module.pyproxy_destroy(this, m, d);
444444
}
445+
446+
[Symbol.dispose]() {
447+
Module.pyproxy_destroy(this, "", true);
448+
}
445449
}
446450
const PyProxyProto = PyProxy.prototype;
447451

0 commit comments

Comments
 (0)