{"action":"created","issue":{"url":"https://api.github.com/repos/zloirock/core-js/issues/62","labels_url":"https://api.github.com/repos/zloirock/core-js/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/zloirock/core-js/issues/62/comments","events_url":"https://api.github.com/repos/zloirock/core-js/issues/62/events","html_url":"https://github.com/zloirock/core-js/issues/62","id":72541849,"number":62,"title":"IE 11 issue with setImmediate + webpack dev server","user":{"login":"box-turtle","id":3999743,"avatar_url":"https://avatars.githubusercontent.com/u/3999743?v=3","gravatar_id":"","url":"https://api.github.com/users/box-turtle","html_url":"https://github.com/box-turtle","followers_url":"https://api.github.com/users/box-turtle/followers","following_url":"https://api.github.com/users/box-turtle/following{/other_user}","gists_url":"https://api.github.com/users/box-turtle/gists{/gist_id}","starred_url":"https://api.github.com/users/box-turtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box-turtle/subscriptions","organizations_url":"https://api.github.com/users/box-turtle/orgs","repos_url":"https://api.github.com/users/box-turtle/repos","events_url":"https://api.github.com/users/box-turtle/events{/privacy}","received_events_url":"https://api.github.com/users/box-turtle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zloirock/core-js/labels/compatibility","name":"compatibility","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-01T22:48:54Z","updated_at":"2015-06-02T22:40:27Z","closed_at":"2015-05-11T10:00:01Z","body":"I reported this on the babel project and @sebmck said I should report it over here.\r\n\r\nUsing babel/core.js with projects that rely on requestAnimationFrame or setImmediate I see \"Invalid Calling Object\" errors when viewing in IE 11 on Windows 7.\r\n\r\nI believe that when you alias setImmediate in IE you have to first bind the function to a calling object.\r\n\r\nHere is the specific issue I hit with the Flummox project: \r\n\r\nhttps://github.com/acdlite/flummox/issues/167\r\n\r\nReferences:\r\nhttps://github.com/caolan/async/issues/299\r\nhttps://github.com/substack/node-browserify/issues/237\r\nhttps://msdn.microsoft.com/library/gg622930(v=vs.85).aspx\r\n\r\nSpecific code for the Flummox issue is a Flummox action class that utilizes async/await. Babel is being run with stage=0.\r\n\r\n```\r\n'use strict';\r\n\r\nimport {Actions} from 'flummox';\r\nimport request from '../util/HttpRequest';\r\n\r\nexport default class MessageActions extends Actions {\r\n\r\n  async getAllMessages() {\r\n    try {\r\n      let response = await request.get('/api/messages').exec();\r\n      return response.body;\r\n    } catch (err) {\r\n      console.log(err);\r\n    }\r\n  }\r\n\r\n  async getMessage(id) {\r\n    try {\r\n      let response = await request.get(`/api/messages/${id}`).exec();\r\n      return response.body;\r\n    } catch (err) {\r\n      console.log(err);\r\n    }\r\n  }\r\n}\r\n```\r\nAfter transpilation by webpack, when I load the page in the dev server, the error \"Invalid Calling Object\" occurs in the file es6.promise.js at the line:\r\n\r\n```\r\nif(isReject || chain.length)asap(function(){\r\n```\r\nThe error only occurs in IE, works fine on mac/win firefox/safari/chrome.\r\n\r\nSimilar issues with requestAnimationFrame\r\nhttps://github.com/facebook/fixed-data-table/issues/15\r\nhttps://github.com/jquense/react-widgets/issues/91\r\n"},"comment":{"url":"https://api.github.com/repos/zloirock/core-js/issues/comments/108118247","html_url":"https://github.com/zloirock/core-js/issues/62#issuecomment-108118247","issue_url":"https://api.github.com/repos/zloirock/core-js/issues/62","id":108118247,"user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars.githubusercontent.com/u/2213682?v=3","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T22:40:27Z","updated_at":"2015-06-02T22:40:27Z","body":"@rafaelchiti I did not reopen this issue because rather it is `webpack` problem. Now I have a problem with free time - getting degree, when I'll be free I gonna try to fix it."}}