summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Map-clear-1.js
blob: 68b08cdb2282af8b7cbcaff16115b41447253161 (plain)
1
2
3
4
5
6
7
8
// Clearing an empty Map has no effect.

var m = new Map();
for (var i = 0; i < 2; i++) {
    m.clear();
    assertEq(m.size, 0);
    assertEq(m.has(undefined), false);
}