This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 513
Polyfill Promise only for IE #599
Comments
import Bluebird from 'bluebird';
// Node
global.Promise = Bluebird;
// Browser
window.Promise = Bluebird; Is it as simple as this? |
I would rather use native Promise where available. There are some trade-offs, need to rethink it. |
I spent hours and hours because I used native Promise instead of Bluebird. The basic error reporting is very bad, at least in Chrome. |
That's good to know. Also, we want to have the same implementation everywhere to ensure the same behavior. And angular/angular.js#6697 (comment) and petkaantonov/bluebird#217 Overriding globals seems to be weird for me, so, I suggest to use plain old |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I think it's right time to polyfill Promise.
http://caniuse.com/#search=promise
The text was updated successfully, but these errors were encountered: