Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
destructuring_with_objects.js
blob: b382b0b0476288d75e79079a57f5f81e25f9e780 [
file
] [
log
] [
blame
]
function
test
()
{
var
{
c
,
x
:
d
,
e
}
=
{
c
:
7
,
x
:
8
};
var
f
,
g
;
({
f
,
g
}
=
{
f
:
9
,
g
:
10
});
return
c
===
7
&&
d
===
8
&&
e
===
undefined
&&
f
===
9
&&
g
===
10
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);