You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently blocked because there are not many ways to fix my problem, I need FinalizationRegistry
Uncaught ReferenceError: FinalizationRegistry is not defined
at null.<anonymous>
(file:///xxx/xxx/xxx/worker_api/node_modules/capnp-es/dist/index.mjs:991:32)
[code: 10021]
It is unlikely that we will ever actually support FinalizationRegistry. I'm sure @kentonv can explain the reasoning best but the tl;dr is that we want to avoid making garbage collection timing observable. We don't currently support WeakRef but I've been thinking more and more than we probably could do so safely.
Describe the solution
I am currently blocked because there are not many ways to fix my problem, I need FinalizationRegistry
ref: https://github.com/pi0/capnp-es - https://github.com/pi0/capnp-es/blob/main/src/rpc/conn.ts#L63
together with a current little patch:
You using it self here: https://github.com/cloudflare/workers-sdk/blob/2e649686c259c639701a62e754c53448cb694dfc/packages/miniflare/src/plugins/core/proxy/client.ts#L141
and a related bug was reported here: cloudflare/workers-sdk#2258
The text was updated successfully, but these errors were encountered: