Save Object.observe()! (please) + make WeakMap/WeakSet observable.

Romuald Quantin romu at soundstep.com
Wed Nov 4 12:56:51 UTC 2015


As an aside and as Coroutines,

I never understood why there is this inability to enumerate WeakMap keys.

Back in the time of flash/as3, I made some modules to observe objects that
were garbage collected, and this was extremely useful. This was only
possible because the keys were utterable.

I was able to monitor objects at run time and their garbage collection as
shown in this screenshot:



I also never really understood the statement there:
http://tc39wiki.calculist.org/es6/weak-map/

The AS3 tools (and demo for the curious):
http://www.soundstep.com/blog/source/somacore/demo/Flash/SomaCoreGC/

This would have a major impact in game development, I wish javascript would
not limit itself constantly.

-- 
www.soundstep.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151104/a579674c/attachment.html>


More information about the es-discuss mailing list