I'm proposing simply initializing a new instance and GC'ing the old
instance entirely (updating the `this` to point to the new) instead of
the current algorithm of maintaining a list of keys. I know that it
potentially slow down the method itself, but it could eliminate the
need for keeping a Map-like index of keys.

I know that this is kinda on the late side for such drastic internal
spec changes, but might fix the problem of indexing WeakMap and
WeakSet entries

Link to formal proposal: https://github.com/impinball/weakmap-weakset-clear
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to