-
Notifications
You must be signed in to change notification settings - Fork 595
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
polyfill() does not polyfill Promise.prototype.finally() if the environment already has a Promise implementation. #330
Comments
Do you know if it works in |
@YurySolovyov |
Thanks, good to know |
Following browser only polyfill setup works for browsers:
It also polyfills promises used in Fetch API and other promise based APIs.
|
Does the In IE 11, I see the following if I include
If I include
So for my application at least, using bluebird seemed to provide a Promise implementation with a And the bluebird approach also provides the |
Thank you! |
In
polyfill.js
, observe line 30: https://github.com/stefanpenner/es6-promise/blob/master/lib/es6-promise/polyfill.js#L30As I understand it, if a Promise implementation is found on the global object, then the polyfill will use the global object's Promise implementation as-is, not augmenting it with the stage 4 ES9/ES2018 feature proposal provided in this library,
Promise.prototype.finally()
.Is this intended behaviour, or a bug? Surely if I have polyfilled
es6-promise
, I should be getting at least all the advertised features ofes6-promise
?The text was updated successfully, but these errors were encountered: