summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug756247.js
blob: 83de1c57d5e27e9608afa106ffc6242da9989d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function foo(i) {
    var n = 0;
    for (var i = 0; i < false; i++)
        n = a++;
    assertEq(n, 0);
}
var a = foo(10);

function bar(x) {
    var y = +(x ? x : "foo");
    assertEq(y, 10);
}
bar(10);