make it illegal to have a rest on a setter
This commit is contained in:
5
test/fixtures/transformation/validation-setters/no-rest/actual.js
vendored
Normal file
5
test/fixtures/transformation/validation-setters/no-rest/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var obj = {
|
||||
set foo(...args) {
|
||||
|
||||
}
|
||||
};
|
||||
3
test/fixtures/transformation/validation-setters/no-rest/options.json
vendored
Normal file
3
test/fixtures/transformation/validation-setters/no-rest/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Setters aren't allowed to have a rest"
|
||||
}
|
||||
Reference in New Issue
Block a user