{"action":"closed","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/2685","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/2685/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/2685/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/2685/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/2685","id":284978329,"number":2685,"title":"Regression after upgrade to v3.3.2 (TypeError: Cannot read property 'layoutInfo' of undefined)","user":{"login":"bvahdat","id":3122177,"avatar_url":"https://avatars3.githubusercontent.com/u/3122177?v=4","gravatar_id":"","url":"https://api.github.com/users/bvahdat","html_url":"https://github.com/bvahdat","followers_url":"https://api.github.com/users/bvahdat/followers","following_url":"https://api.github.com/users/bvahdat/following{/other_user}","gists_url":"https://api.github.com/users/bvahdat/gists{/gist_id}","starred_url":"https://api.github.com/users/bvahdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvahdat/subscriptions","organizations_url":"https://api.github.com/users/bvahdat/orgs","repos_url":"https://api.github.com/users/bvahdat/repos","events_url":"https://api.github.com/users/bvahdat/events{/privacy}","received_events_url":"https://api.github.com/users/bvahdat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-28T19:44:53Z","updated_at":"2017-12-28T21:34:45Z","closed_at":"2017-12-28T21:34:45Z","author_association":"NONE","body":"**Bug report or feature request?** \r\nbug\r\n<!-- Note: sub-optimal but correct code is not a bug -->\r\n\r\n**ES5 or ES6+ input?** \r\nES5\r\n<!-- Note: for ES6 see: https://github.com/mishoo/UglifyJS2/tree/harmony#harmony -->\r\n\r\n**Uglify version (`uglifyjs -V`)**\r\nv3.3.2\r\n\r\n**JavaScript input**\r\nhttps://github.com/angular/material/blob/master/src/components/gridList/grid-list.js\r\n\r\nWhose minified version fails @ the following line:\r\n\r\nhttps://github.com/angular/material/blob/master/src/components/gridList/grid-list.js#L503\r\n<!--\r\n    A complete parsable JS program exhibiting the issue with\r\n    UglifyJS alone - without third party tools or libraries.\r\n    Ideally the input should be as small as possible.\r\n    Post a link to a gist if necessary.\r\n\r\n    Issues without a reproducible test case will be closed.\r\n-->\r\n**The `uglifyjs` CLI command executed or `minify()` options used.**\r\nI'm `gulp-uglifyjs` with the `saveLicense` option as documented here:\r\nhttps://github.com/shinnn/uglify-save-license#use-with-uglifyjs\r\nThat's:\r\n```javascript\r\nimport saveLicense from 'uglify-save-license';\r\n...\r\n...\r\n  .pipe($.uglify({\r\n    output: {\r\n      comments: saveLicense\r\n    }}))\r\n...\r\n...\r\n```\r\n\r\n**JavaScript output or error produced.**\r\n```\r\nTypeError: Cannot read property 'layoutInfo' of undefined\r\n    at gridList.js:516\r\n    at Object.time (core.js:1462)\r\n    at Object.map (gridList.js:515)\r\n    at Object.c.layoutDelegate (gridList.js:196)\r\n    at Object.layout (gridList.js:469)\r\n    at Object.callback (angular.js:1384)\r\n    at core.js:1694\r\n    at Array.forEach (<anonymous>)\r\n    at core.js:1691\r\n    at angular.js:20557\r\n```\r\n<!--\r\n    Note: `uglify-js` only supports ES5. \r\n    Those wishing to minify ES6 should use `uglify-es`.\r\n-->\r\n![screen shot 2017-12-28 at 20 19 57](https://user-images.githubusercontent.com/3122177/34421194-294a54b8-ec0e-11e7-90fb-beba257be70a.png)\r\n\r\n![screen shot 2017-12-28 at 20 31 20](https://user-images.githubusercontent.com/3122177/34421196-31332efc-ec0e-11e7-869c-5a508ca00f47.png)\r\n\r\n"}}
{"actor":{"display_login":"alexlamsl"}}