summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/new-array-undefined-undefined-more-args-1.js
blob: e4a9e1a88c9b2148ae51fc2d4a213f3bc84a6bc7 (plain)
1
2
3
4
5
6
for (var i = 0; i < 1e4; i++)
{
  assertEq(typeof new Array(undefined, undefined, 1, 2, 3, 4).sort()[0],
           "number",
           "bad, i: " + i);
}