es6-weak-map
es6-weak-map copied to clipboard
Consider override of native ES5 functions
As other weak-map project does.
It will assure that WeakMap polyfill works also for non extensible objects
Hey @medikoo, would you still consider doing something like this?
I'd love to use memoizee/weak
but seem to bump up against this everytime I try since devs in my team are working with React's frozen props objects and occasionally seamless-immutable
objects.
@mxdubois definitely, and I plan to look into it within next 2 weeks.
Still the idea is to make it slightly simpler (and less invasive) than in mentioned weak-map.
We will provide an optional override to Object.freeze
etc., which will have to be loaded upfront if someone wants to ensure that weak map can work on frozen or non-extensible objects.
@medikoo I really like that solution. I was worried resolution of this issue would collide with my work in gulp but it seems like it will be fine.