It is sometimes useful to maintain an identity map of objects in JavaScript, but then it becomes unclear when it is safe to dereference them when nothing has used them in awhile.
One solution is to introduce weak values in JS, so an object wouldn’t keep its values around forever.