Sign in
webkit
/
WebKit
/
36b74c3900290f2598b1d40cf6065a7028fc4a34
/
.
/
JSTests
/
es6
/
destructuring_chained_object_destructuring.js
blob: c42f8fa0dcb38b2f0d046bd3a0d8b5e52ca6a286 [
file
] [
log
] [
blame
]
function
test
()
{
var
a
,
b
,
c
,
d
;
({
a
,
b
}
=
{
c
,
d
}
=
{
a
:
1
,
b
:
2
,
c
:
3
,
d
:
4
});
return
a
===
1
&&
b
===
2
&&
c
===
3
&&
d
===
4
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);