Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
call2.js
blob: 9e68bb20ae1a61dc1c57a0ad99f83840af7fa24a [
file
] [
log
] [
blame
]
function
g
(
x
)
{
if
((
x
&
1
)
==
1
)
return
1
;
return
2
;
}
function
f
(
n
)
{
var
q
=
0
;
for
(
var
i
=
0
;
i
<
n
;
i
++)
q
+=
g
(
i
);
return
q
;
}
assertEq
(
f
(
1000
),
1500
);