Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
es6
/
destructuring_with_strings.js
blob: 4bf3be3a4f3b7659a46bb3c86c155803b6df3ff9 [
file
] [
log
] [
blame
]
function
test
()
{
var
[
a
,
b
,
c
]
=
"ab"
;
var
d
,
e
;
[
d
,
e
]
=
"de"
;
return
a
===
"a"
&&
b
===
"b"
&&
c
===
undefined
&&
d
===
"d"
&&
e
===
"e"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);