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

var N = 1 << 16;
var m = new Map;
for (var i = 0; i < N; i++)
    assertEq(m.set(i, i), m);
for (var i = 0; i < N; i++)
    assertEq(m.get(i), i);