← Back to release summary

JavaScript weak references

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 84)
Intent stage
Prepare to ship

Summary

Weak references enable JavaScript developers to create weak references to JavaScript objects. Weak references and finalizers help web developers define cleanup routines that don't keep the related objects alive but are (optionally) executed after the related object is garbage-collected.

Standards & signals

Docs: https://v8.dev/features/weak-references

Samples: https://v8.dev/features/weak-references

Explainers: https://v8.dev/features/weak-references

View on chromestatus.com