{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3926","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3926/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3926/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3926/events","html_url":"https://github.com/jashkenas/coffeescript/issues/3926","id":65740387,"number":3926,"title":"Unexpected error during compilation","user":{"login":"GuillaumeLeclerc","id":2017051,"avatar_url":"https://avatars.githubusercontent.com/u/2017051?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeLeclerc","html_url":"https://github.com/GuillaumeLeclerc","followers_url":"https://api.github.com/users/GuillaumeLeclerc/followers","following_url":"https://api.github.com/users/GuillaumeLeclerc/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeLeclerc/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeLeclerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeLeclerc/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeLeclerc/orgs","repos_url":"https://api.github.com/users/GuillaumeLeclerc/repos","events_url":"https://api.github.com/users/GuillaumeLeclerc/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeLeclerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-01T17:44:02Z","updated_at":"2015-04-03T14:05:50Z","closed_at":null,"body":"If compile the following code, the compiler crash unexpectedly :\r\n\r\n```coffeescript\r\n(toto : true) ->\r\n    console.log \"bug\"\r\n\r\n```\r\n\r\nhere is the partial call stack \r\n\r\n```\r\nTypeError: Cannot read property 'length' of undefined\r\n  at Param.exports.Param.Param.eachName (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:2123:30)\r\n  at Param.exports.Param.Param.eachName (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:2126:16)\r\n  at Code.exports.Code.Code.eachParamName (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:2047:28)\r\n  at Code.exports.Code.Code.compileNode (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:2001:12)\r\n  at Code.exports.Base.Base.compileToFragments (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:83:21)\r\n  at Block.exports.Block.Block.compileNode (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:387:28)\r\n  at Block.exports.Block.Block.compileWithDeclarations (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:480:19)\r\n  at Block.exports.Block.Block.compileRoot (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:452:24)\r\n  at Block.exports.Block.Block.compileToFragments (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/nodes.js:369:21)\r\n  at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:61:38\r\n  at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:34:19\r\n```\r\n\r\nIf help is needed I might try to find some time and make a pull request.\r\n\r\nBest regards and thank you for your help\r\n\r\nGuillaume Leclerc "},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/89299813","html_url":"https://github.com/jashkenas/coffeescript/issues/3926#issuecomment-89299813","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3926","id":89299813,"user":{"login":"akre54","id":931368,"avatar_url":"https://avatars.githubusercontent.com/u/931368?v=3","gravatar_id":"","url":"https://api.github.com/users/akre54","html_url":"https://github.com/akre54","followers_url":"https://api.github.com/users/akre54/followers","following_url":"https://api.github.com/users/akre54/following{/other_user}","gists_url":"https://api.github.com/users/akre54/gists{/gist_id}","starred_url":"https://api.github.com/users/akre54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akre54/subscriptions","organizations_url":"https://api.github.com/users/akre54/orgs","repos_url":"https://api.github.com/users/akre54/repos","events_url":"https://api.github.com/users/akre54/events{/privacy}","received_events_url":"https://api.github.com/users/akre54/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T14:05:50Z","updated_at":"2015-04-03T14:05:50Z","body":"It is a bit confusing that `(a: b) ->` destructures, but `a: b = obj` does not."}}