promise-polyfill
Advanced tools
Changelog
2.1.0 Promise._setImmedateFn
Removed dead code Promise.immedateFn and added Promise._setImmediateFn(fn);
Changelog
2.0.2 Simplified Global detection
Simplified attaching to global object
Changelog
2.0.1 Webworker bugfixes
Fixed Webworkers missing window object
Changelog
2.0.0
Changed the following line
module.exports = root.Promise ? root.Promise : Promise;
to
module.exports = Promise;
This means the library will not use built-in Promise by default. This allows for more consistency.
You can easily add the functionality back.
var Promise = window.Promise || require('promise-polyfill');
Added Promise.immediateFn to allow changing the setImmedate function
Promise.immediateFn = window.setAsap;