polymer-weakmap

2.0.0 • Public • Published

DEPRECATED

This repo has moved to https://github.com/Polymer/webcomponentsjs

WeakMap

Shim for ES6 WeakMap

Shim Limitations

As ES5 Javascript does not have the ability to use weak references, the key-value association must be held strongly somwhere.

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    8
  • 1.0.0
    0
  • 0.0.0
    1

Package Sidebar

Install

npm i polymer-weakmap

Weekly Downloads

9

Version

2.0.0

License

BSD

Last publish

Collaborators

  • briandipalma