summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/double-array-loop-phi.js
blob: b12a9b5f37e3bae23516dd03c787bbd73065a83d (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    for (var i = 0; i < 600; i++) {
        var arr = [1.1, ([...[]], 2.2), i];
        for (var j = 0; j < 2; j++) {
            var idx = j === 1 ? 2 : 0;
            var exp = j === 1 ? i + 1 : 2.1;
            assertEq(arr[idx] + 1, exp);
        }
    }
}
f();