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

'catch' is a reserved word in IE 8 / 9 #20

Closed
jblashill opened this issue Apr 21, 2014 · 5 comments
Closed

'catch' is a reserved word in IE 8 / 9 #20

jblashill opened this issue Apr 21, 2014 · 5 comments

Comments

@jblashill
Copy link

And thus, you cannot use promise.catch() if you plan on supporting IE 8 or 9.

I realize that this isn't a bug that can be fixed, but it is perhaps worth mentioning it as a limitation of this polyfill so developers aren't caught off guard when their app breaks on IE 8/9.

@stefanpenner
Copy link
Owner

+1 mentioning

@jblashill
Copy link
Author

I should have included the work-around if you need to support IE 8 or 9:

promise["catch"](function(err) {
  // do something smart
});

@stefanpenner
Copy link
Owner

adding a es3 safe transpile step is also a great solution, for those that have a build pipeline.

@jakearchibald
Copy link
Collaborator

Agreed, thanks for pointing this out

@torarnek
Copy link

torarnek commented Dec 9, 2014

This one did the trick for me:
https://github.com/teppeis/gulp-dereserve

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

No branches or pull requests

4 participants