Benvie/ES6-Harmony-Collections-Shim — Issue #1: WeakMap GC semantics
Author: Raynos
Created: 2011-12-26 11:22:37+00:00
State: open

https://gist.github.com/1269991

These semantics can be emulated to an extend.

Advantages:
- desctruction of the key destroys the data attached to the key

Disadvantages:
- requires writable/configurable .valueOf property
- lookup becomes O(M) where M is the number of weakmaps the element is a key for