payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/terser-js/terser/issues/250","repository_url":"https://api.github.com/repos/terser-js/terser","labels_url":"https://api.github.com/repos/terser-js/terser/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/terser-js/terser/issues/250/comments","events_url":"https://api.github.com/repos/terser-js/terser/issues/250/events","html_url":"https://github.com/terser-js/terser/issues/250","id":405996985,"node_id":"MDU6SXNzdWU0MDU5OTY5ODU=","number":250,"title":"typeof/instanceof comparisons are retained","user":{"login":"filipesilva","id":4172079,"node_id":"MDQ6VXNlcjQxNzIwNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4172079?v=4","gravatar_id":"","url":"https://api.github.com/users/filipesilva","html_url":"https://github.com/filipesilva","followers_url":"https://api.github.com/users/filipesilva/followers","following_url":"https://api.github.com/users/filipesilva/following{/other_user}","gists_url":"https://api.github.com/users/filipesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/filipesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipesilva/subscriptions","organizations_url":"https://api.github.com/users/filipesilva/orgs","repos_url":"https://api.github.com/users/filipesilva/repos","events_url":"https://api.github.com/users/filipesilva/events{/privacy}","received_events_url":"https://api.github.com/users/filipesilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-02T16:19:47Z","updated_at":"2019-02-02T16:19:47Z","closed_at":null,"author_association":"NONE","body":"**Bug report or Feature request?**\r\n\r\nI think this is a bug, but it might be working as intended.\r\n\r\n**Version (complete output of `terser -V`)**\r\n3.16.0\r\n\r\n**Complete CLI command or `minify()` options used**\r\n\r\n\r\n`terser test.js --toplevel --compress --mangle`\r\n\r\n**`terser` input**\r\n```js\r\n// test.js\r\nvar __window = typeof window !== 'undefined' && window;\r\nvar __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;\r\nvar __global = typeof global !== 'undefined' && global;\r\nif (typeof ngDevMode === 'undefined' || ngDevMode) { }\r\nif (typeof ngDevMode !== 'undefined' && ngDevMode) { }\r\n```\r\n\r\n**`terser` output or error**\r\nOutput is\r\n```\r\n\"undefined\"!=typeof window&&window,\r\n\"undefined\"!=typeof self&&\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,\r\n\"undefined\"!=typeof global&&global;\r\n\"undefined\"==typeof ngDevMode||ngDevMode,\r\n\"undefined\"!=typeof ngDevMode&&ngDevMode;\r\n```\r\n(Note: I added line breaks for readability, but the output proper did not have line breaks.\r\n\r\n**Expected result**\r\nI expected the output to be nothing. \r\n\r\nMaybe there's a reason for leaving these comparisons there that I don't see."}}
other: {"actor":{"display_login":"filipesilva"}}