Sign in
webkit
/
WebKit
/
6a4edb22099c5ceee737202d9e8199fc148e5117
/
.
/
JSTests
/
es6
/
rest_parameters_cant_be_used_in_setters.js
blob: f8092591a3445e660eb8a818c86b3a32df7132b9 [
file
] [
log
] [
blame
]
function
test
()
{
return
(
function
(...
args
)
{
try
{
eval
(
"({set e(...args){}})"
);
}
catch
(
e
)
{
return
true
;
}
}());
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);