{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/6511","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/6511/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/6511/comments","events_url":"https://api.github.com/repos/babel/babel/issues/6511/events","html_url":"https://github.com/babel/babel/issues/6511","id":266814891,"number":6511,"title":"IE11: SCRIPT438:Object doesn't support property or method 'forEach'","user":{"login":"hezhongfeng","id":12163050,"avatar_url":"https://avatars2.githubusercontent.com/u/12163050?v=4","gravatar_id":"","url":"https://api.github.com/users/hezhongfeng","html_url":"https://github.com/hezhongfeng","followers_url":"https://api.github.com/users/hezhongfeng/followers","following_url":"https://api.github.com/users/hezhongfeng/following{/other_user}","gists_url":"https://api.github.com/users/hezhongfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/hezhongfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hezhongfeng/subscriptions","organizations_url":"https://api.github.com/users/hezhongfeng/orgs","repos_url":"https://api.github.com/users/hezhongfeng/repos","events_url":"https://api.github.com/users/hezhongfeng/events{/privacy}","received_events_url":"https://api.github.com/users/hezhongfeng/received_events","type":"User","site_admin":false},"labels":[{"id":441815993,"url":"https://api.github.com/repos/babel/babel/labels/i:%20question","name":"i: question","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-19T11:50:32Z","updated_at":"2017-10-20T00:46:31Z","closed_at":"2017-10-19T19:24:15Z","author_association":"NONE","body":"\r\n### Input Code\r\n\r\n```js\r\n      let topicsDoc = document.querySelectorAll(\".topic\");\r\n      let topicList = \"\";\r\n      topicsDoc.forEach(function(element) {\r\n        topicList += element.innerText;\r\n        console.log(element.innerText);\r\n      });\r\n```\r\n\r\n### Babel Configuration (.babelrc, package.json, cli command)\r\n<!--- If describing a bug, tell us what your babel configuration looks like -->\r\n\r\n```js\r\n{\r\n  \"presets\": [\r\n    [\"env\", {\r\n      \"modules\": false,\r\n      \"targets\": {\r\n        \"browsers\": [\"> 1%\", \"last 2 versions\", \"ie >= 11\"]\r\n      }\r\n    }],\r\n    \"stage-2\"\r\n  ],\r\n  \"plugins\": [\"transform-runtime\"],\r\n  \"env\": {\r\n    \"test\": {\r\n      \"presets\": [\"env\", \"stage-2\"],\r\n      \"plugins\": [\"istanbul\"]\r\n    }\r\n  }\r\n}\r\n\r\n```\r\n\r\n### Expected Behavior\r\n\r\nconsole some text\r\n### Current Behavior\r\n\r\nIE11 will has en error\r\n`SCRIPT438:Object doesn't support property or method 'forEach'`\r\n\r\n### Possible Solution\r\n\r\n\r\n### Context\r\n\r\n\r\n### Your Environment\r\n\r\n| software         | version(s)\r\n| ---------------- | -------\r\n| Babel            |  6.22.1\r\n| node             | 6.11.0\r\n| npm              |  3.10.10\r\n| Operating System | win10\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/338076009","html_url":"https://github.com/babel/babel/issues/6511#issuecomment-338076009","issue_url":"https://api.github.com/repos/babel/babel/issues/6511","id":338076009,"user":{"login":"loganfsmyth","id":132260,"avatar_url":"https://avatars1.githubusercontent.com/u/132260?v=4","gravatar_id":"","url":"https://api.github.com/users/loganfsmyth","html_url":"https://github.com/loganfsmyth","followers_url":"https://api.github.com/users/loganfsmyth/followers","following_url":"https://api.github.com/users/loganfsmyth/following{/other_user}","gists_url":"https://api.github.com/users/loganfsmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/loganfsmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganfsmyth/subscriptions","organizations_url":"https://api.github.com/users/loganfsmyth/orgs","repos_url":"https://api.github.com/users/loganfsmyth/repos","events_url":"https://api.github.com/users/loganfsmyth/events{/privacy}","received_events_url":"https://api.github.com/users/loganfsmyth/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T00:46:31Z","updated_at":"2017-10-20T00:46:31Z","author_association":"OWNER","body":"The easiest thing to do would be \r\n\r\n    let topicsDoc = Array.from(document.querySelectorAll(\".topic\"));\r\n\r\nsince `Array` will have `.forEach`."}}
{"actor":{"display_login":"loganfsmyth"}}