Sign in
webkit
/
WebKit
/
b0c18fd02ef6ac2cc1ec9b828ca23bc34a61f86b
/
.
/
JSTests
/
es6
/
destructuring_defaults_in_parameters_new_Function_support.js
blob: 077307c508d9da0d5b7066e41449a67aa44dadb2 [
file
] [
log
] [
blame
]
function
test
()
{
return
new
Function
(
"{a = 1, b = 0, c = 3, x:d = 0, y:e = 5}"
,
"return a === 1 && b === 2 && c === 3 && d === 4 && e === 5;"
)({
b
:
2
,
c
:
undefined
,
x
:
4
});
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);