{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1912","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1912/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1912/events","html_url":"https://github.com/webpack/webpack/issues/1912","id":128077374,"number":1912,"title":"should not use `slice` on [object object]","user":{"login":"BorelTung","id":5929173,"avatar_url":"https://avatars.githubusercontent.com/u/5929173?v=3","gravatar_id":"","url":"https://api.github.com/users/BorelTung","html_url":"https://github.com/BorelTung","followers_url":"https://api.github.com/users/BorelTung/followers","following_url":"https://api.github.com/users/BorelTung/following{/other_user}","gists_url":"https://api.github.com/users/BorelTung/gists{/gist_id}","starred_url":"https://api.github.com/users/BorelTung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorelTung/subscriptions","organizations_url":"https://api.github.com/users/BorelTung/orgs","repos_url":"https://api.github.com/users/BorelTung/repos","events_url":"https://api.github.com/users/BorelTung/events{/privacy}","received_events_url":"https://api.github.com/users/BorelTung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T03:48:02Z","updated_at":"2016-01-22T03:48:02Z","closed_at":null,"body":"It seems that you want to skip some object in  `for...in` by setting enumerable false to it.\r\nBut IE8 does not have `Object.defineProperty`.\r\n\r\nSo the following codes throw en error in IE8,\r\n`Object doesn't support property or method 'slice'`.\r\n\r\n```\r\nfor (moduleId in moreModules) {\r\n  var _m = moreModules[moduleId];\r\n\r\n  // Check if module is deduplicated\r\n  switch (typeof _m) {\r\n    case \"object\":\r\n      // Module can be created from a template\r\n      modules[moduleId] = (function(_m) {\r\n        // in IE8 _m maybe [object object] some time, but not [object Array]\r\n        var args = _m.slice(1),\r\n          templateId = _m[0];\r\n        return function(a, b, c) {\r\n          modules[templateId].apply(this, [a, b, c].concat(args));\r\n        };\r\n      }(_m));\r\n      break;\r\n    case \"function\":\r\n      // Normal module\r\n      modules[moduleId] = _m;\r\n      break;\r\n    default:\r\n      // Module is a copy of another module\r\n      modules[moduleId] = modules[_m];\r\n      break;\r\n  }\r\n}\r\n```"}}