2013/3/26 Juan Ignacio Dopazo <dopazo.j...@gmail.com> > 2013/3/25 Erik Arvidsson <erik.arvids...@gmail.com> > >> WeakMap would not work in this specific case since a WeakMap cannot be >> iteratered. >> > > I thought there was an iterable WeakSet for ES6. Was it postponed to ES7 > or just dropped? >
I doubt there was ever an *iterable* WeakSet proposal, since iteration would make GC of the weakly held values observable. This is exactly the same reason why WeakMap isn't iterable. Cheers, Tom
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss