On 3/21/17 2:15 AM, /#!/JoePea wrote:
I'd like to have something like a WeakMap where the keys can be
primitives and the values are weakly-held Objects

It might be worth searching the archives: this has been proposed multiple times and discussed at quite some length.

If there isn't an existing document that summarizes the discussions (and quick searching doesn't find one in the top several hits, though it does find https://esdiscuss.org/topic/what-is-the-status-of-weak-references at the very least), there really should be one...

-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to