Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testMoreClosures.js
blob: 5592bcba376920c2fce1a88541713783191ebfbe [
file
] [
log
] [
blame
]
function
testMoreClosures
()
{
var
f
=
{},
max
=
3
;
var
hello
=
function
(
n
)
{
function
howdy
()
{
return
n
*
n
}
f
.
test
=
howdy
;
};
for
(
var
i
=
0
;
i
<=
max
;
i
++)
hello
(
i
);
return
f
.
test
();
}
assertEq
(
testMoreClosures
(),
9
);