summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Map-gc-4.js
blob: 5597ec1bbfdb28438a63b31b50cfec2356adc95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Bug 770954.

gczeal(4);
var s = new Set;
s.add(-0);
s.add(0);
assertEq(s.delete(-0), true);
assertEq(s.has(0), (false  ));
assertEq(s.has(-0), false);
var m = new Map;
m.set(-0, 'x');
assertEq(m.has(0), true);
assertEq(m.get(0), 'x');
assertEq(m.has(-0), true);
assertEq(m.delete(-0), true);