summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFloatArrayIndex.js
blob: 564824778d5325b4770ead01fbb68bf2cffa4614 (plain)
1
2
3
4
5
6
7
8
9
function testFloatArrayIndex() {
    var a = [];
    for (var i = 0; i < 10; ++i) {
        a[3] = 5;
        a[3.5] = 7;
    }
    return a[3] + "," + a[3.5];
}
assertEq(testFloatArrayIndex(), "5,7");