summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/timeout-check.js
blob: 856eee8d774d6e201a02cd8c7da83408e3990a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| exitstatus: 6; skip-if: getBuildConfiguration()['wasi']
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);