JavaScript weak references

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.

Demo

Documentation

Specification

Editor's draft

Status in Chromium

Blink>JavaScript>Language


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • In development
  • No public signals
  • No public signals
  • Positive

Owners

Last updated on 2019-07-09