Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
jaeger
/
closure-03.js
blob: e2d1ebe3f85c5336979ac9870087546f2eeab62f [
file
] [
log
] [
blame
]
/* Recovering non-reentrant information on singletons after a GC. */
function
foo
(
a
)
{
return
function
()
{
gc
();
var
n
=
0
;
for
(
var
i
=
0
;
i
<
20
;
i
++)
n
=
a
++;
assertEq
(
n
,
29
);
};
}
var
a
=
foo
(
10
);
var
b
=
foo
(
20
);
a
();