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