make it illegal to have a rest on a setter

This commit is contained in:
Sebastian McKenzie
2015-03-07 01:32:03 +11:00
parent 35c49dbef7
commit 8ad678e5bc
5 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
var obj = {
set foo(...args) {
}
};

View File

@@ -0,0 +1,3 @@
{
"throws": "Setters aren't allowed to have a rest"
}