Status: New
Owner: ----
New issue 1921 by [email protected]: WeakMap hold values strongly
http://code.google.com/p/v8/issues/detail?id=1921
V8 3.8.7.1 (chrome dev 18.0.1017 + --harmony flag)
var a = {b: {0: 0}, c: {1: 1}};
var map = new WeakMap;
map.set(a.b, a.c)
delete a.c
console.log(map.get(a.b))
Would output {1: 1}.
ES6 doc says it shouldn't
http://wiki.ecmascript.org/doku.php?id=harmony:weak_maps
neither keys nor values in a weak map are held strongly
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev