Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arguments
/
testDelArg2.js
blob: 09fcf1f57d68d99061976e62a532cf86df307a7e [
file
] [
log
] [
blame
]
function
f
(
del
)
{
o
=
arguments
;
if
(
del
)
delete
o
[
2
];
for
(
var
i
=
0
;
i
<
10
;
++
i
)
assertEq
(
o
[
2
]
==
undefined
,
del
);
}
// record without arg deleted
f
(
false
,
1
,
2
,
3
,
4
);
// run with arg deleted
f
(
true
,
1
,
2
,
3
,
4
);