summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-scale.js
blob: 5c5af2a5a8685a8fcd085433afb34e5c3e64ec75 (plain)
1
2
3
4
5
6
7
8
// Sets can hold at least 64K values.

var N = 1 << 16;
var s = new Set;
for (var i = 0; i < N; i++)
    assertEq(s.add(i), s);
for (var i = 0; i < N; i++)
    assertEq(s.has(i), true);