{"action":"opened","issue":{"url":"https://api.github.com/repos/google/closure-compiler-js/issues/77","repository_url":"https://api.github.com/repos/google/closure-compiler-js","labels_url":"https://api.github.com/repos/google/closure-compiler-js/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler-js/issues/77/comments","events_url":"https://api.github.com/repos/google/closure-compiler-js/issues/77/events","html_url":"https://github.com/google/closure-compiler-js/issues/77","id":256083242,"number":77,"title":"Setting ECMASCRIPT_2017 for the languageOut option always errors","user":{"login":"philipwalton","id":326742,"avatar_url":"https://avatars1.githubusercontent.com/u/326742?v=4","gravatar_id":"","url":"https://api.github.com/users/philipwalton","html_url":"https://github.com/philipwalton","followers_url":"https://api.github.com/users/philipwalton/followers","following_url":"https://api.github.com/users/philipwalton/following{/other_user}","gists_url":"https://api.github.com/users/philipwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/philipwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipwalton/subscriptions","organizations_url":"https://api.github.com/users/philipwalton/orgs","repos_url":"https://api.github.com/users/philipwalton/repos","events_url":"https://api.github.com/users/philipwalton/events{/privacy}","received_events_url":"https://api.github.com/users/philipwalton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-07T21:59:42Z","updated_at":"2017-09-07T21:59:42Z","closed_at":null,"author_association":"MEMBER","body":"For example, even given the following reduced example, I get an error:\r\n\r\n```js\r\nconst closureFlags = {\r\n  jsCode: [{\r\n    src: 'console.log(`foo`)',\r\n    path: 'foo.js',\r\n  }],\r\n  languageIn: 'ECMASCRIPT_2017',\r\n  languageOut: 'ECMASCRIPT_2017',\r\n  compilationLevel: 'ADVANCED',\r\n  warningLevel: 'VERBOSE',\r\n};\r\n```\r\n\r\nI get the error `ReferenceError: window is not defined`:\r\n\r\n```\r\nReferenceError: window is not defined\r\n    at NFe (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:5715:29)\r\n    at CFe (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:6430:228)\r\n    at GFe (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:3360:65)\r\n    at KFe (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:1417:19)\r\n    at AIc (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:7403:54)\r\n    at BIc.CIc [as fg] (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:7823:318365)\r\n    at qIc (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:5741:146)\r\n    at cEb (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:5083:91)\r\n    at eFb (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:3416:69)\r\n    at bGb.cGb [as $h] (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:7823:153996)\r\n    at qGb (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:4710:36)\r\n    at eEb (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:7201:153)\r\n    at Ccd (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:7440:358)\r\n    at aJ (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:1782:29)\r\n    at dJ (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:3102:44)\r\n    at /Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/jscomp.js:3289:46\r\n    at module.exports (/Users/philipwalton/Projects/philipwalton/workbox/node_modules/google-closure-compiler-js/compile.js:31:15)\r\n```\r\n\r\nI'm using version `20170806.0.0`, and note that I do NOT get this error when using the Java version.\r\n\r\n(possibly related to #74, but I can't be sure since that issue gives no details)\r\n"}}
{"actor":{"display_login":"philipwalton"}}