Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An essential WeakMap polyfill for legacy browsers.

License

NotificationsYou must be signed in to change notification settings

ungap/weakmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusCoverage StatusGreenkeeper badgeWebReflection status

An essentialWeakMap polyfill for legacy browsers (IE < 11).

Compatible down to IE9, works well with ES5 shim upfront in IE8 (and maybe lower too).

Live test

Transpiled code and frozen objects in legacy browsers

If you need this module to work in IE < 11 too with frozen objects, or template literals frozen via Babel transpilation, you need to either nullifyObject.freeze and others via something like<script>this.WeakMap||(Object.freeze=Object);</script> on top of your pages, or you can nullify only template literals through:

<script>this.WeakMap||(function(O,f){f=O.freeze||O;O.freeze=function(o){return'raw'ino?o:f(o)}}(Object));</script>

About

An essential WeakMap polyfill for legacy browsers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp