Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
destructuring_nested.js
blob: ddb112456dcab5c6d3131305a65c0ee0be07f930 [
file
] [
log
] [
blame
]
function
test
()
{
var
[
e
,
{
x
:
f
,
g
}]
=
[
9
,
{
x
:
10
}];
var
{
h
,
x
:[
i
]}
=
{
h
:
11
,
x
:[
12
]};
return
e
===
9
&&
f
===
10
&&
g
===
undefined
&&
h
===
11
&&
i
===
12
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);