es6-weak-map icon indicating copy to clipboard operation
es6-weak-map copied to clipboard

Consider override of native ES5 functions

Open medikoo opened this issue 9 years ago • 3 comments

As other weak-map project does.

It will assure that WeakMap polyfill works also for non extensible objects

medikoo avatar Feb 03 '15 08:02 medikoo

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 avatar Apr 28 '17 00:04 mxdubois

@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 avatar Apr 28 '17 06:04 medikoo

@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.

phated avatar Apr 28 '17 15:04 phated