Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
ifInsideLoop.js
blob: 296e3f82d53105006c640a95e48abb6f6f91c776 [
file
] [
log
] [
blame
]
function
ifInsideLoop
()
{
var
cond
=
true
,
intCond
=
5
,
count
=
0
;
for
(
var
i
=
0
;
i
<
100
;
i
++)
{
if
(
cond
)
count
++;
if
(
intCond
)
count
++;
}
return
count
;
}
assertEq
(
ifInsideLoop
(),
200
);