{"action":"closed","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3809","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3809/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3809/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3809/events","html_url":"https://github.com/jashkenas/coffeescript/issues/3809","id":55546655,"number":3809,"title":"Null defaulted parameters create extraneous javascript","user":{"login":"silkentrance","id":6068824,"avatar_url":"https://avatars.githubusercontent.com/u/6068824?v=3","gravatar_id":"","url":"https://api.github.com/users/silkentrance","html_url":"https://github.com/silkentrance","followers_url":"https://api.github.com/users/silkentrance/followers","following_url":"https://api.github.com/users/silkentrance/following{/other_user}","gists_url":"https://api.github.com/users/silkentrance/gists{/gist_id}","starred_url":"https://api.github.com/users/silkentrance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silkentrance/subscriptions","organizations_url":"https://api.github.com/users/silkentrance/orgs","repos_url":"https://api.github.com/users/silkentrance/repos","events_url":"https://api.github.com/users/silkentrance/events{/privacy}","received_events_url":"https://api.github.com/users/silkentrance/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T22:25:18Z","updated_at":"2015-01-26T23:00:45Z","closed_at":"2015-01-26T23:00:45Z","body":"Having a class instance method such as\r\n```\r\n65     removeAllListeners : (event = null, client = null) ->\r\n66 \r\n67         actualEvent = event\r\n68         actualClient = client\r\n```\r\n\r\nwill generate the following Javascript with coffee-script version 1.8.0\r\n\r\n```\r\n$ coffee --version\r\nCoffeeScript version 1.8.0\r\n```\r\n\r\n```\r\n...\r\n    if (event == null) {\r\n      event = null;\r\n    }\r\n    if (client == null) {\r\n      client = null;\r\n    }\r\n    actualEvent = event;\r\n    actualClient = client;\r\n```\r\n\r\n\r\nWhat I would have expected it to generate is the following\r\n\r\n```\r\n    actualEvent = event;\r\n    actualClient = client;\r\n```"}}