{"action":"created","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/1779","labels_url":"https://api.github.com/repos/jshint/jshint/issues/1779/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/1779/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/1779/events","html_url":"https://github.com/jshint/jshint/issues/1779","id":38664653,"number":1779,"title":"Rest parameters and default parameters","user":{"login":"MartinKolarik","id":6192491,"avatar_url":"https://avatars.githubusercontent.com/u/6192491?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinKolarik","html_url":"https://github.com/MartinKolarik","followers_url":"https://api.github.com/users/MartinKolarik/followers","following_url":"https://api.github.com/users/MartinKolarik/following{/other_user}","gists_url":"https://api.github.com/users/MartinKolarik/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinKolarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinKolarik/subscriptions","organizations_url":"https://api.github.com/users/MartinKolarik/orgs","repos_url":"https://api.github.com/users/MartinKolarik/repos","events_url":"https://api.github.com/users/MartinKolarik/events{/privacy}","received_events_url":"https://api.github.com/users/MartinKolarik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jshint/jshint/labels/ES6","name":"ES6","color":"5319e7"},{"url":"https://api.github.com/repos/jshint/jshint/labels/P2","name":"P2","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-07-24T19:17:02Z","updated_at":"2015-06-29T13:49:11Z","closed_at":null,"body":"JSHint reports `Regular parameters cannot come after default parameters` if you use both default parameter and rest parameter, but I think this is a valid use case:\r\n```js\r\nfunction f (x = 0, ...y) {}\r\n```"},"comment":{"url":"https://api.github.com/repos/jshint/jshint/issues/comments/116666061","html_url":"https://github.com/jshint/jshint/issues/1779#issuecomment-116666061","issue_url":"https://api.github.com/repos/jshint/jshint/issues/1779","id":116666061,"user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T13:49:11Z","updated_at":"2015-06-29T13:49:11Z","body":"Any preference on whether to convert to a warning or remove outright ?\r\n\r\nNot sure what you mean by `There is no restriction on defaults` but if its that `function(a = b,b){}` fails, that is covered in other issues (and fixed in a PR)"}}