Sign in
webkit
/
WebKit
/
c70b37a6ab650230cb78b0a9021c262059cf20b2
/
.
/
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"
);