Set
, Map
, WeakSet
and WeakMap
incorrect output where circular entries and prototype or some properties altered
#521
Labels
bug
Something isn't working
Example 1:
Example 2:
In both cases,
set.add()
fails becauseset.add
is no longerSet.prototype.add
.Solution would be that if there are circular entries, apply prototype and any
.add
property after theset.add()
calls.Same problem applies with
WeakSet
and with the.set()
method ofMap
s andWeakMap
s.The text was updated successfully, but these errors were encountered: