Sign in
webkit
/
WebKit
/
34573b4327f502983405341f6edd2f8dcbc2cb0c
/
.
/
JSTests
/
es6
/
destructuring_with_arrays.js
blob: 6deb63ee7713759b938cbe14757a0666dfd3c204 [
file
] [
log
] [
blame
]
function
test
()
{
var
[
a
,
,
[
b
],
c
]
=
[
5
,
null
,
[
6
]];
var
d
,
e
;
[
d
,
e
]
=
[
7
,
8
];
return
a
===
5
&&
b
===
6
&&
c
===
undefined
&&
d
===
7
&&
e
===
8
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);