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

Only polyfill Promise if it doesn't exist at all #3613

Merged
merged 1 commit into from
Aug 25, 2017

Conversation

shockey
Copy link
Contributor

@shockey shockey commented Aug 25, 2017

Fixes #3586.

Adding this conditional overrides the test in core-js that overwrites window.Promise if the Promise implementation isn't standard (discussion: zloirock/core-js#283, angular/zone.js#783).

This may open us up to issues with non-standard browsers, and applications that use funky Promise implementations, but the risk isn't widespread.

TODO:

  • Test with IE11

@shockey
Copy link
Contributor Author

shockey commented Aug 25, 2017

Confirmed working in IE11. Merging!

@shockey shockey merged commit e37d4a5 into master Aug 25, 2017
@shockey shockey deleted the bug/3586-promise-polyfill-species-test branch September 29, 2017 06:32
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

Successfully merging this pull request may close these issues.

1 participant