Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 Promise in Internet Explorer 9 #77

Closed
jessedijkstra opened this issue Jun 5, 2015 · 2 comments
Closed

ES6 Promise in Internet Explorer 9 #77

jessedijkstra opened this issue Jun 5, 2015 · 2 comments

Comments

@jessedijkstra
Copy link

I've tried to use the ES6 Promise through BabelJS with Webpack in Internet Explorer 9, but the moment I include a Promise IE9 errors.

It gives me the following error: 'SCRIPTXXX: Invalid calling object'.

Debugging the error points to the following line in the code:

  // Modern browsers, skip implementation for WebWorkers
  // IE8 has postMessage, but it's sync & typeof its postMessage is object
  } else if(addEventListener && isFunction(postMessage) && !global.importScripts){
    defer = function(id){
      postMessage(id, '*');
    };
    addEventListener('message', listner, false);
  // WebWorkers

It gives me the error at the addEventListener('message', listner, false); statement.

I hope I have time to debug the error further the coming weekend, but for now I'm using the es6-promise polyfill which works fine.

@zloirock
Copy link
Owner

zloirock commented Jun 5, 2015

Looks like #62 - webpack problem, but I'll try fix at core-js side when I'll have time.

@jessedijkstra
Copy link
Author

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants