summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testArrayNaNIndex.js
blob: 671f6ff8f6d6ffc9b4480ea28c32591ce4214418 (plain)
1
2
3
4
5
6
7
function testArrayNaNIndex()
{
    for (var j = 0; j < 4; ++j) { [this[NaN]]; }
    for (var j = 0; j < 5; ++j) { if([1][-0]) { } }
    return "ok";
}
assertEq(testArrayNaNIndex(), "ok");