{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3820","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3820/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3820/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3820/events","html_url":"https://github.com/jashkenas/coffeescript/issues/3820","id":56056717,"number":3820,"title":"`do variable = (name = 2) ->` doesn't test parameter for null when calling","user":{"login":"xfix","id":1297598,"avatar_url":"https://avatars.githubusercontent.com/u/1297598?v=3","gravatar_id":"","url":"https://api.github.com/users/xfix","html_url":"https://github.com/xfix","followers_url":"https://api.github.com/users/xfix/followers","following_url":"https://api.github.com/users/xfix/following{/other_user}","gists_url":"https://api.github.com/users/xfix/gists{/gist_id}","starred_url":"https://api.github.com/users/xfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfix/subscriptions","organizations_url":"https://api.github.com/users/xfix/orgs","repos_url":"https://api.github.com/users/xfix/repos","events_url":"https://api.github.com/users/xfix/events{/privacy}","received_events_url":"https://api.github.com/users/xfix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-30T16:50:00Z","updated_at":"2015-02-20T12:46:12Z","closed_at":"2015-01-31T04:54:51Z","body":"Assume following code.\r\n\r\n```coffee\r\ndo checkDefaultValue = (defaultValue = 'Test passed') ->\r\n  defaultValue\r\n\r\nalert checkDefaultValue()\r\n```\r\n\r\nExpected result: `Test passed`\r\nActual result: `undefined`"},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/75232655","html_url":"https://github.com/jashkenas/coffeescript/issues/3820#issuecomment-75232655","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/3820","id":75232655,"user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T12:46:12Z","updated_at":"2015-02-20T12:46:12Z","body":"But it is not a bug. I assure you, this feature was intentional."}}