Sign in
cobalt
/
cobalt
/
2ea2238d90d36bda2ed661e5419f2b40fae96ba4
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testBranchingLoop.js
blob: 5c302425fe633ae1b078ad6534463897ac77b6eb [
file
] [
log
] [
blame
]
function
testBranchingLoop
()
{
var
x
=
0
;
for
(
var
i
=
0
;
i
<
100
;
++
i
)
{
if
(
i
==
51
)
{
x
+=
10
;
}
x
++;
}
return
x
;
}
assertEq
(
testBranchingLoop
(),
110
);