Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
destructuring_in_parameters_arguments_interaction.js
blob: d7db90ea20c7f05629506e0a123de67006e606fd [
file
] [
log
] [
blame
]
function
test
()
{
return
(
function
({
a
,
x
:
b
,
y
:
e
},
[
c
,
d
])
{
return
arguments
[
0
].
a
===
1
&&
arguments
[
0
].
x
===
2
&&
!(
"y"
in arguments
[
0
])
&&
arguments
[
1
]
+
''
===
"3,4"
;
}({
a
:
1
,
x
:
2
},
[
3
,
4
]));
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);