summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1254197.js
blob: d5ef9c902ae83b06c7cc8b3c6b872b133d9f27c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
setJitCompilerOption("ion.warmup.trigger", 1);
function f(x) {
    var w = [];
    var i = 0;
    for (var count = 0; count < 3; count++) {
        for (var j = 0; j < 60; j++) {
            if (j < 1) {
                w[0] = x[i];
            } else {
                w[0][0];
            }
        }
        i = 1;
    }
}
f([NaN, 0]);