{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10730","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10730/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10730/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10730/events","html_url":"https://github.com/emberjs/ember.js/issues/10730","id":64594742,"number":10730,"title":"IE8 Support - Broken by transpilation","user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Regression","name":"Regression","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/emberjs/ember.js/milestones/16","html_url":"https://github.com/emberjs/ember.js/milestones/1.12.0","labels_url":"https://api.github.com/repos/emberjs/ember.js/milestones/16/labels","id":983207,"number":16,"title":"1.12.0","description":"","creator":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-02-17T17:03:52Z","updated_at":"2015-04-03T11:17:41Z","due_on":"2015-04-25T04:00:00Z","closed_at":null},"comments":15,"created_at":"2015-03-26T17:56:23Z","updated_at":"2015-04-03T11:17:41Z","closed_at":"2015-04-03T11:17:41Z","body":"Our compatibility with IE8 has been broken by the recent few pull requests adding ES6 features.\r\n\r\n---\r\n\r\nExample (destructuring):\r\n\r\nInput:\r\n\r\n```javascript\r\nfunction foo(blah) {\r\n var [a,b] = blah; \r\n}\r\n```\r\n\r\nOutput:\r\n\r\n```javascript\r\n\"use strict\";\r\n\r\nvar _slicedToArray = function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { _arr.push(_step.value); if (i && _arr.length === i) break; } return _arr; } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } };\r\n\r\nfunction foo(blah) {\r\n  var _blah = _slicedToArray(blah, 2);\r\n\r\n  var a = _blah[0];\r\n  var b = _blah[1];\r\n}\r\n```\r\n\r\n---\r\n\r\nExample (spread):\r\n\r\nInput:\r\n\r\n```javascript\r\nfunction doIt(foo) {\r\n  blah(...foo)\r\n}\r\n```\r\n\r\nOutput:\r\n\r\n```javascript\r\n\"use strict\";\r\n\r\nvar _toConsumableArray = function (arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } };\r\n\r\nfunction doIt(foo) {\r\n  blah.apply(undefined, _toConsumableArray(foo));\r\n}\r\n```\r\n---\r\n\r\nThe above examples show usage of destructuring and spread, but Babel currently assumes `Array.isArray` is present (which is not true of IE8)."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/89258173","html_url":"https://github.com/emberjs/ember.js/issues/10730#issuecomment-89258173","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10730","id":89258173,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T11:17:41Z","updated_at":"2015-04-03T11:17:41Z","body":"Fixed by #10816."}}