Sign in
webkit
/
WebKit
/
07d93176ad085e8b12e6369a18ce39856d96c516
/
.
/
JSTests
/
es6
/
destructuring_in_parameters.js
blob: 39d8567b87ba7c2d9add1ce0bdead391d1aa3aae [
file
] [
log
] [
blame
]
function
test
()
{
return
(
function
({
a
,
x
:
b
,
y
:
e
},
[
c
,
d
])
{
return
a
===
1
&&
b
===
2
&&
c
===
3
&&
d
===
4
&&
e
===
undefined
;
}({
a
:
1
,
x
:
2
},
[
3
,
4
]));
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);