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

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