Sign in
webkit
/
WebKit
/
6c28038d16e77a6c2a87706c88a3f1b04b6cb2c7
/
.
/
JSTests
/
es6
/
destructuring_in_parameters_new_Function_support.js
blob: 7c159092205e47e702ac0975abf6fea1c5f55b2a [
file
] [
log
] [
blame
]
function
test
()
{
return
new
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"
);