Sign in
webkit
/
WebKit
/
942f1c55789c2d11f989cfa1840f51c0777b0784
/
.
/
JSTests
/
es6
/
destructuring_multiples_in_a_single_var_statement.js
blob: 873e02494eac9d3610b1c91eb742a43b40df57cc [
file
] [
log
] [
blame
]
function
test
()
{
var
[
a
,
b
]
=
[
5
,
6
],
{
c
,
d
}
=
{
c
:
7
,
d
:
8
};
return
a
===
5
&&
b
===
6
&&
c
===
7
&&
d
===
8
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);