summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1694600.js
blob: 7a0ee06343f18573e8da5887531f02f0def10885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function foo(fn, y) {
    var dummy = y > 0 ? 1 : 2;
    fn();
    return y * y;
}

function nop() {}
function throws() { throw 1; }

with ({}) {}
for (var i = 0; i < 100; i++) {
    foo(nop, 0)
    try {
	foo(throws, 0x7fffffff)
    } catch {}
}