{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/29866","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/29866/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/29866/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/29866/events","html_url":"https://github.com/dart-lang/sdk/issues/29866","id":235846255,"number":29866,"title":"DDC null initializes optional parameters","user":{"login":"leafpetersen","id":8484504,"avatar_url":"https://avatars2.githubusercontent.com/u/8484504?v=3","gravatar_id":"","url":"https://api.github.com/users/leafpetersen","html_url":"https://github.com/leafpetersen","followers_url":"https://api.github.com/users/leafpetersen/followers","following_url":"https://api.github.com/users/leafpetersen/following{/other_user}","gists_url":"https://api.github.com/users/leafpetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/leafpetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leafpetersen/subscriptions","organizations_url":"https://api.github.com/users/leafpetersen/orgs","repos_url":"https://api.github.com/users/leafpetersen/repos","events_url":"https://api.github.com/users/leafpetersen/events{/privacy}","received_events_url":"https://api.github.com/users/leafpetersen/received_events","type":"User","site_admin":false},"labels":[{"id":417806791,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-dev-compiler","name":"area-dev-compiler","color":"c7def8","default":false},{"id":616983277,"url":"https://api.github.com/repos/dart-lang/sdk/labels/dev-compiler-performance","name":"dev-compiler-performance","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-14T11:20:22Z","updated_at":"2017-06-14T11:20:22Z","closed_at":null,"body":"Optional parameters with no defaults result in generated code like the following:\r\n\r\n```\r\n    if (message === void 0) message = null;\r\n```\r\n\r\nI believe that we do not distinguish between `undefined` and `null`, so this seems like we should elide the null initialization here.  "}}
{"actor":{"display_login":"leafpetersen"}}