polymer-weakmap2.0.0 • Public • Published
This repo has moved to https://github.com/Polymer/webcomponentsjs
Shim for ES6 WeakMap
In order to hold the key "weakly", a key property of WeakMap, the value is added to key as a hidden, randomly named property. This strategy avoids the possible memory leak of having two arrays holding keys and values, but does mean that key cannot be a frozen object.