Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
gc
/
oomInOffTheadCompile.js
blob: 1ad79fadbc342f35d1bcba34676eb0af64412c57 [
file
] [
log
] [
blame
]
if
(!(
'oomTest'
in
this
)
||
helperThreadCount
()
===
0
)
quit
();
oomTest
(()
=>
{
offThreadCompileScript
(
`
function
f
(
x
)
{
if
(
x
==
0
)
return
"foobar"
;
return
1
+
f
(
x
-
1
);
}
f
(
5
);
`);
runOffThreadScript
();
});