This document defines a WeakMap polyfill that allows using WeakMaps in environments that do not natively support them. It works by adding a hidden property to map key objects to store the key-value entries. The polyfill is compatible with key objects that have been sealed or frozen.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
142 views
Jsapi
This document defines a WeakMap polyfill that allows using WeakMaps in environments that do not natively support them. It works by adding a hidden property to map key objects to store the key-value entries. The polyfill is compatible with key objects that have been sealed or frozen.