Sign in
webkit
/
WebKit
/
e0f5f32b82f576e50c4ce4b81eede6e14ad0d44f
/
.
/
JSTests
/
es6
/
destructuring_defaults.js
blob: ed28743e46a54ab9c2b0d524eb26e7241c2b7adf [
file
] [
log
] [
blame
]
function
test
()
{
var
{
a
=
1
,
b
=
0
,
z
:
c
=
3
}
=
{
b
:
2
,
z
:
undefined
};
var
[
d
=
0
,
e
=
5
,
f
=
6
]
=
[
4
,,
undefined
];
return
a
===
1
&&
b
===
2
&&
c
===
3
&&
d
===
4
&&
e
===
5
&&
f
===
6
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);