blob: 8c9ce862bfb1237de4216a0edc51d2f7e82c66ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| skip-if: !('oomTest' in this) || helperThreadCount() === 0
oomTest(() => {
offThreadCompileScript(
`
function f(x) {
if (x == 0)
return "foobar";
return 1 + f(x - 1);
}
f(5);
`);
runOffThreadScript();
});
|