summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-size.js
blob: 7aca1d3b750f3cc6de6d491e5330e1676e9b805a (plain)
1
2
3
4
5
6
7
// Each Set has its own size.

var s1 = new Set(), s2 = new Set();
for (var i = 0; i < 30; i++)
    s1.add(i);
assertEq(s1.size, 30);
assertEq(s2.size, 0);