Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC] Prevent use of FinalizationRegistry for workers support #7

Closed
Dexus opened this issue Oct 9, 2024 · 3 comments
Closed

[RPC] Prevent use of FinalizationRegistry for workers support #7

Dexus opened this issue Oct 9, 2024 · 3 comments

Comments

@Dexus
Copy link

Dexus commented Oct 9, 2024

FinalizationRegistry is not on all systems available, while it works in the most browsers, serverless worker will not supported.

Cloudflare don't support it, same on other Cloud Providers.

@pi0 pi0 changed the title Prevent use of FinalizationRegistry [RPC] Prevent use of FinalizationRegistry Jan 16, 2025
@pi0
Copy link
Member

pi0 commented Jan 16, 2025

@anonrig Do you think workerd would eventually support FinalizationRegistry?

(update: made it conditional: 0b91ec4)

@pi0 pi0 changed the title [RPC] Prevent use of FinalizationRegistry [RPC] Prevent use of FinalizationRegistry for workers support Jan 16, 2025
@pi0 pi0 closed this as completed in 0b91ec4 Jan 16, 2025
@anonrig
Copy link

anonrig commented Jan 16, 2025

@anonrig Do you think workerd would eventually support FinalizationRegistry?

(update: made it conditional: 0b91ec4)

Cc @jasnell

@jasnell
Copy link

jasnell commented Jan 16, 2025

Unlikely. For a number of reasons workers do not allow GC to be observed. It's not something we're likely to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants