Skip to content

Conversation

@hamishwillee
Copy link
Contributor

FF146 adds support for using non-registered symbols as keys for WeakMap and values for WeakSet in https://bugzilla.mozilla.org/show_bug.cgi?id=1966745

The issue only talks about WeakMap, but I ran a test for WeakSet and that behaves the same way:

const ws = new WeakSet();
const sym = Symbol('foo');
ws.add(sym); 

This updates the subfeature.

Related docs work can be tracked in mdn/content#41868

@github-actions github-actions bot added data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:s [PR only] 7-24 LoC changed labels Nov 21, 2025
@github-actions
Copy link
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner changed the title FF146 WeakMap/WeakSet use non-registered symbols as keys/values Firefox 146 supports non-registered symbols as WeakMap/WeakSet keys Nov 25, 2025
@caugner caugner changed the title Firefox 146 supports non-registered symbols as WeakMap/WeakSet keys Firefox 146 adds non-registered symbols as WeakMap/WeakSet keys Nov 25, 2025
@caugner caugner merged commit a551682 into mdn:main Nov 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:s [PR only] 7-24 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants