Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testThinForEach.js
blob: 85e5ca2d361987ecb720c26944b7e5f6081c514a [
file
] [
log
] [
blame
]
function
testThinForEach
()
{
var
a
=
[
"red"
];
var
n
=
0
;
for
(
var
i
=
0
;
i
<
10
;
i
++)
for
each
(
var
v in a
)
if
(
v
)
n
++;
return
n
;
}
assertEq
(
testThinForEach
(),
10
);