summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/timeout-check.js
blob: 159aa663ccfa36d3fcf2029b9e6e2ea1939f6891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| exitstatus: 6
function f(x) {
    if (x === 0)
	return;
    f(x - 1);
    f(x - 1);
    f(x - 1);
    f(x - 1);
    f(x - 1);
    f(x - 1);
}
timeout(0.1);
f(100);
assertEq(0, 1);