Feature-Request: allow to iterate over WeakSet / WeakMap
bzbarsky at mit.edu
Wed Jul 13 14:27:34 UTC 2016
On 7/13/16 10:18 AM, Michael Kriegel wrote:
> But shouldn't it be predictable, whether there
> are still "non-weak" references to an object?
Maybe. The GC may include a machine stack scanner to root things
referenced on the stack, which can give false positives depending on
what integers happen to be hanging out on the stack.
> does NOT depend on, whether the object has actually been gc'ed, but whether the object does
> have "non-weak" references to it.
Determining this basically requires running a full gc, no?
> I am not sure, which kinds of garbage collectors the implementations of
> ECMAScript typically use. If they used a reference counter
More information about the es-discuss