Skip to content

Commit bb5f401

Browse files
committed
Add changelog entry for FinalizationRegistry
1 parent 6c652c3 commit bb5f401

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Improved Memory Efficiency for WebAssembly Workers
3+
description: With the introduction of FinalizationRegistry in Workers Runtime, toolchains like Emscripten and wasm-bindgen can automatically reclaim unused WebAssembly heap and reduce memory leaks.
4+
products:
5+
- workers
6+
date: 2025-05-24T00:00:00Z
7+
---
8+
9+
[FinalizationRegistry](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry) is now available in Workers (opt-in with the `enable_weak_ref` compat flag), so toolchains such as Emscripten and wasm-bindgen can automatically free WebAssembly heap allocations.
10+
11+
While this will reduce long-running memory growth and leaks to a certain extent, the API still depends on garbage-collector timing and other non-deterministic factors, so treat it as a helpful mitigation rather than a guaranteed fix.

0 commit comments

Comments
 (0)