summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1697451.js
blob: 9e8c166c99f9ec155180e84386324e7bb1ccac58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var dummy;
function foo(a) {
    dummy = arguments.length;
    return a;
}

function bar(x) {
    var arg = x ? 1 : 2;
    assertEq(foo(arg), arg);
}

with({}) {}
for (var i = 0; i < 50; i++) {
    bar(i % 2 == 0);
}