Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
gc
/
oomInExceptionHandlerBailout.js
blob: fd77c00c6e150c2b0e23c6ce9ea59614f546428b [
file
] [
log
] [
blame
]
if
(!(
'oomTest'
in
this
))
quit
();
oomTest
(()
=>
{
let x
=
0
;
try
{
for
(
let i
=
0
;
i
<
100
;
i
++)
{
if
(
i
==
99
)
throw
"foo"
;
x
+=
i
;
}
}
catch
(
e
)
{
x
=
0
;
}
return
x
;
});