summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/timeout-check.js
blob: ece69a25843a6277e67ff8fbabb1a777f734df3c (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);