Status: New
Owner: ----
New issue 2829 by [email protected]: WeakMap does not keep entries after
interaction with Object.freeze(Object.prototype)
http://code.google.com/p/v8/issues/detail?id=2829
(Chrome "Experimental JavaScript" flag on, or d8 --harmony_collections)
// trigger problem
var wm1 = new WeakMap();
wm1.set(Object.prototype, true);
Object.freeze(Object.prototype);
// test for problem
var wm2 = new WeakMap();
var o = {};
wm2.set(o, true);
return wm2.get(o);
I expect wm2.get(o) to return true, but instead it returns undefined. The
problem also occurs if wm1 and wm2 are the same.
This problem occurs on Mac OS X 10.8.4 in Google Chrome versions
30.0.1587.2 (Official Build 215563) canary, V8 3.20.11.1
29.0.1547.41 (Official Build 214871) beta, V8 3.19.18.18
and in a fresh build of v8 from git commit
4656dc9003ac9f3f5d8be77b2f4e73cf2fdb5460.
It does _not_ occur in Google Chrome stable.
This was discovered as Caja issue
<https://code.google.com/p/google-caja/issues/detail?id=1831>.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.