Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
setArgumentsLength.js
blob: 775d3ef9f2cf563ce9e7c517b7620a341397454f [
file
] [
log
] [
blame
]
var
count
=
0
;
function
f
()
{
arguments
.
length
--;
for
(
var
i
=
0
;
i
<
arguments
.
length
;
++
i
)
{
++
count
;
}
}
f
(
1
,
2
);
f
(
1
,
2
);
f
(
2
,
2
);
assertEq
(
count
,
3
);