summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testConstIf.js
blob: 2fcde1caf0bd421da54bc9f2c146869ba09b699c (plain)
1
2
3
4
5
6
function testConstIf() {
    var x;
    for (var j=0;j<5;++j) { if (1.1 || 5) { } x = 2;}
    return x;
}
assertEq(testConstIf(), 2);