{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babili/issues/177","repository_url":"https://api.github.com/repos/babel/babili","labels_url":"https://api.github.com/repos/babel/babili/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/babel/babili/issues/177/comments","events_url":"https://api.github.com/repos/babel/babili/issues/177/events","html_url":"https://github.com/babel/babili/issues/177","id":181139179,"number":177,"title":"Certain constant expressions don't get simplified or removed","user":{"login":"Ginden","id":3824055,"avatar_url":"https://avatars.githubusercontent.com/u/3824055?v=3","gravatar_id":"","url":"https://api.github.com/users/Ginden","html_url":"https://github.com/Ginden","followers_url":"https://api.github.com/users/Ginden/followers","following_url":"https://api.github.com/users/Ginden/following{/other_user}","gists_url":"https://api.github.com/users/Ginden/gists{/gist_id}","starred_url":"https://api.github.com/users/Ginden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ginden/subscriptions","organizations_url":"https://api.github.com/users/Ginden/orgs","repos_url":"https://api.github.com/users/Ginden/repos","events_url":"https://api.github.com/users/Ginden/events{/privacy}","received_events_url":"https://api.github.com/users/Ginden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T12:28:23Z","updated_at":"2016-10-05T12:28:23Z","closed_at":null,"body":"These expressions can be always simplified:\r\n```\r\n({}) === ({}) // each object literal is unique object\r\n({} === 3 ? 1 : 1) // object never equals number, and === comparison is guaranteed not to cause side effects\r\n(new Date() === 3 ? 1 : 1) // new operator can't return primitive value\r\n(new Date() === {})\r\n(new Array() === []) \r\n(new Array() === 5) // new operator can't return primitive value\r\n(new Date() === 685) // new operator can't return primitive value\r\n```\r\n\r\n"}}
{"actor":{"display_login":"Ginden"}}