summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1779833.js
blob: 7b2f132046041e837bd7cb2e28fa8339374cb08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This failed when run under ASAN.

let size = 6;

let map = new Map();
assertEq(isNurseryAllocated(map), true);
for (let i = 0; i < size; i++) {
  map.set(i, {});
}

for (let i = 0; i < size - 1; i++) {
  map.delete(i);
}

for (let i = 0; i < size - 1; i++) {
  map.set(i, {});
}

map = undefined;
minorgc();