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