summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug726180.js
blob: 01b0816e41e4e73882268691c6d585e9e68ac520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function orTestHelper(a, b, n)
{
    var k = 0;
    for (var i = 0; i < n; i++) {
        if (a || b)
            return 1;
    }
    return 0;
}

orTestHelper("", NaN, 30)
orTestHelper("", null, 30);
var x = orTestHelper("", 1, 5)
assertEq(x, 1)