Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testNestedDeepBail.js
blob: 8e59b04cdaab6e193ae53c4f55aa1bde7d115fc7 [
file
] [
log
] [
blame
]
var
_quit
;
function
testNestedDeepBail
()
{
_quit
=
false
;
function
loop
()
{
for
(
var
i
=
0
;
i
<
4
;
i
++)
;
}
loop
();
function
f
()
{
loop
();
_quit
=
true
;
}
var
stk
=
[[
1
],
[],
[],
[],
[]];
while
(!
_quit
)
stk
.
pop
().
forEach
(
f
);
}
testNestedDeepBail
();