summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testAtomize.js
blob: 16076eb6beaf678a716dd63d4e2dc3e52d3ece17 (plain)
1
2
3
4
5
6
7
8
9
10
function testAtomize() {
    x = {};
    for (var i = 0; i < 65536; ++i)
	x[String.fromCharCode(i)] = 1;
    var z = 0;
    for (var p in x)
	++z;
    return z;
}
assertEq(testAtomize(), 65536)