Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
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
);