All files / src setImmediate.ts

75% Statements 3/4
33.33% Branches 2/6
100% Functions 0/0
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9      46x 46x     46x  
type TSetImmediate = (callback: (...args) => void, args?) => void;
let _setImmediate: TSetImmediate;
 
if (typeof setImmediate === 'function')
  _setImmediate = setImmediate.bind(typeof globalThis !== 'undefined' ? globalThis : global);
else E_setImmediate = setTimeout.bind(typeof globalThis !== 'undefined' ? globalThis : global);
 
export default _setImmediate as TSetImmediate;