mozilla/rhino

Support ES2021 WeakRef & FinalizationRegistry

Open

#943 opened on Jun 23, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (3,728 stars) (812 forks)batch import
Ecma Incompatibilityfeaturegood first issue

Description

WeakRef, for referring to a target object without preserving it from garbage collection FinalizationRegistry, to manage registration and unregistration of cleanup operations performed when target objects are garbage collected

Proposal: https://github.com/tc39/proposal-weakrefs MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef

Contributor guide