3.0.0
版本发布时间: 2016-01-10 00:46:37
taylorhakes/promise-polyfill最新发布版本:8.2.2(2022-03-12 14:59:17)
In version 2 mocking setTimeout in Jasmine and Sinon would affect promise-polyfill
resolution. Since native Promise is not affected by mocks, this library has been updated to behave the same way.
This is considered a breaking change because people may have been using this functionality. If you would like to keep version 2 functionality, set Promise._setImmediateFn on promise-polyfill
like the code below.
var Promise = require('promise-polyfill');
Promise._setImmedateFn(function(fn) {
setTimeout(fn, 1);
});