{"action":"created","issue":{"url":"https://api.github.com/repos/documentationjs/documentation/issues/223","labels_url":"https://api.github.com/repos/documentationjs/documentation/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/documentationjs/documentation/issues/223/comments","events_url":"https://api.github.com/repos/documentationjs/documentation/issues/223/events","html_url":"https://github.com/documentationjs/documentation/issues/223","id":114922507,"number":223,"title":"Crash when parsing rest parameters","user":{"login":"rjbailey","id":2250242,"avatar_url":"https://avatars.githubusercontent.com/u/2250242?v=3","gravatar_id":"","url":"https://api.github.com/users/rjbailey","html_url":"https://github.com/rjbailey","followers_url":"https://api.github.com/users/rjbailey/followers","following_url":"https://api.github.com/users/rjbailey/following{/other_user}","gists_url":"https://api.github.com/users/rjbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/rjbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjbailey/subscriptions","organizations_url":"https://api.github.com/users/rjbailey/orgs","repos_url":"https://api.github.com/users/rjbailey/repos","events_url":"https://api.github.com/users/rjbailey/events{/privacy}","received_events_url":"https://api.github.com/users/rjbailey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-03T22:13:13Z","updated_at":"2015-11-03T22:55:53Z","closed_at":"2015-11-03T22:44:12Z","body":"Attempting to generate documentation for the following fails, seemingly because of the rest parameter:\r\n\r\n```js\r\n/**\r\n * Test function\r\n */\r\nfunction testArgsParsing(...args) {\r\n  return args;\r\n}\r\n```\r\n\r\nIt fails with:\r\n\r\n```\r\nnode_modules/documentation/bin/documentation.js:21\r\n    throw err;\r\n          ^\r\nTypeError: Cannot call method 'split' of undefined\r\n    at node_modules/documentation/lib/nest_params.js:29:28\r\n    at Array.forEach (native)\r\n    at Object.module.exports [as 6] (node_modules/documentation/lib/nest_params.js:27:18)\r\n    at node_modules/documentation/index.js:31:28\r\n    at Array.map (native)\r\n    at node_modules/documentation/index.js:94:16\r\n    at node_modules/documentation/lib/input/dependency.js:41:5\r\n    at ConcatStream.<anonymous> (node_modules/documentation/node_modules/concat-stream/index.js:36:43)\r\n    at ConcatStream.emit (events.js:117:20)\r\n    at finishMaybe (node_modules/documentation/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:509:14)\r\n```\r\n\r\nI'm using documentation 3.0.1, and invoking via the CLI: `documentation test.js`.\r\n\r\nThanks for the great work--I'm looking forward to being able to use this for my project :)"},"comment":{"url":"https://api.github.com/repos/documentationjs/documentation/issues/comments/153515048","html_url":"https://github.com/documentationjs/documentation/issues/223#issuecomment-153515048","issue_url":"https://api.github.com/repos/documentationjs/documentation/issues/223","id":153515048,"user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:55:53Z","updated_at":"2015-11-03T22:55:53Z","body":":+1: upgrading to 3.0.2 will fix this issue."}}