Comment #3 on issue 1921 by [email protected]: WeakMap hold values strongly
http://code.google.com/p/v8/issues/detail?id=1921
I would like to clarify my initial comment: as long as key remains strongly reachable the map will retain associated value. Even if you get GC in the example above map.get(a.b) will continue to return {1: 1} because key is strongly reachable through a.
Please refer to "Abstract GC Algorithm" section in ECMAScript wiki for more information.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
