Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
jaeger
/
inline
/
scripted-03.js
blob: f54c1c66da1c1e2e004a46c32d8c47dfef44b6af [
file
] [
log
] [
blame
]
function
choose
(
x
,
y
,
z
)
{
return
x
?
y
:
z
;
}
function
foo
(
x
,
y
,
z
)
{
var
a
=
0
;
for
(
var
i
=
0
;
i
<
100
;
i
++)
{
a
+=
choose
(
x
,
y
,
z
);
}
return
a
;
}
var
q
=
foo
(
true
,
10
,
0
);
assertEq
(
q
,
1000
);