File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import allSettled from './allSettled';
4
4
// Store setTimeout reference so promise-polyfill will be unaffected by
5
5
// other code modifying setTimeout (like sinon.useFakeTimers())
6
6
var setTimeoutFunc = setTimeout ;
7
- // @ts -ignore
8
- var setImmediateFunc = typeof setImmediate !== 'undefined' ? setImmediate : null ;
9
7
10
8
function isArray ( x ) {
11
9
return Boolean ( x && typeof x . length !== 'undefined' ) ;
@@ -239,10 +237,10 @@ Promise.race = function(arr) {
239
237
// Use polyfill for setImmediate for performance gains
240
238
Promise . _immediateFn =
241
239
// @ts -ignore
242
- ( typeof setImmediateFunc === 'function' &&
240
+ ( typeof setImmediate === 'function' &&
243
241
function ( fn ) {
244
242
// @ts -ignore
245
- setImmediateFunc ( fn ) ;
243
+ setImmediate ( fn ) ;
246
244
} ) ||
247
245
function ( fn ) {
248
246
setTimeoutFunc ( fn , 0 ) ;
You can’t perform that action at this time.
0 commit comments