objectbuffer icon indicating copy to clipboard operation
objectbuffer copied to clipboard

Would it make sense to support WeakMaps?

Open LifeIsStrange opened this issue 3 years ago • 1 comments

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections#weakmap_object See also the analogue WeakSet.

(I've seen that you already implemented support for WeakReferences btw)

LifeIsStrange avatar Nov 23 '21 21:11 LifeIsStrange

You mean you would want to save WeakMaps/Sets to the objectbuffer? I'm not sure if it's possible. WeakReferences as in use internally as part of the memory reclaiming, but you can't save them into an objectbuffer.

Unless I'm missing something :) I would love to hear more about your usecase

Bnaya avatar Dec 07 '21 10:12 Bnaya