Misleading test of value presence in WeakSet/WeakMap
oldium opened this issue · comments
After this assignment:
Line 1322 in 75bf0b4
See the following lines:
Lines 1323 to 1324 in 75bf0b4
Those basically test if value null
is in the map/set, not if foo
is still in the map/set. There exists no way to check whether the value is in the map/set when the last reference is lost, so those tests actually do not test what they are trying to show.