summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/ConvertElementsToDouble-Int32.js
blob: bb3390416e2def087807358af2f20132cf709cbd (plain)
1
2
3
4
5
6
7
8
9
// Bug 1312488

function test(a) {
    let x = 0;
    for (let i = 0, len = a.length; i < len; i++)
        x += a[i];
    return x;
}
assertEq(test([10.1, 10.2, 10.3, 10.4, 10]), 51);