Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arguments
/
defaults-destructuring-function-expression.js
blob: 9517a5c4d496d58aa24aff9bbc68137c28d3e592 [
file
] [
log
] [
blame
]
let f
=
function
(
a
,
bIs
,
cIs
,
dIs
,
{
b
}={
b
:
3
},
c
=
4
,
[
d
]=[
5
])
{
assertEq
(
a
,
1
);
assertEq
(
b
,
bIs
);
assertEq
(
c
,
cIs
);
assertEq
(
d
,
dIs
);
};
assertEq
(
f
.
length
,
4
);
f
(
1
,
3
,
4
,
5
);
f
(
1
,
42
,
43
,
44
,
{
b
:
42
},
43
,
[
44
]);