← Back to release summary

Symbols as WeakMap keys

Category
JavaScript
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
Intent stage
Prepare to ship

Summary

This proposal allows Symbols to be used as keys in WeakMaps, WeakSet, as the referent in a WeakRef, and as the target in a FinalizationRegistry.

Standards & signals

Explainers: https://github.com/tc39/proposal-symbols-as-weakmap-keys

View on chromestatus.com