summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1706314.js
blob: 210f827a2a48cc6b4c2c70dacd97dc8f505f2888 (plain)
1
2
3
4
5
6
7
8
9
function f(a,b) {
    var o1 = {x: 1};
    var o2 = {x: 1};
    for (var i = 0; i < 100; i++) {
        var res = a ? (b ? o1 : o2) : null;
        assertEq(res, o1);
    }
}
f(true, true);