Sign in
webkit
/
WebKit
/
f55c8d5a229dd3a052f61f168a5038f0e11b4fff
/
.
/
JSTests
/
es6
/
destructuring_nested_rest.js
blob: 0383396d244aa636c61709e42f03d69764b7ff5f [
file
] [
log
] [
blame
]
function
test
()
{
var
a
=
[
1
,
2
,
3
],
first
,
last
;
[
first
,
...[
a
[
2
],
last
]]
=
a
;
return
first
===
1
&&
last
===
3
&&
(
a
+
""
)
===
"1,2,2"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);