Bug 950722 - Add a test for interaction between WeakMap and moving GC r=terrence

This commit is contained in:
Jon Coppeard 2013-12-17 10:41:27 +00:00
parent c33f723f69
commit 94055ad9bd

View File

@ -0,0 +1,12 @@
var wm = new WeakMap;
var A = [];
for (var i = 0; i < 1024; ++i) {
var key = {i:i};
wm.set(key, i);
A.push(key);
}
gc();
for (var i in A) {
var key = A[i];
assertEq(wm.has(key), true);
}