push
github
505 of 552 branches covered (91.49%)
Branch coverage included in aggregate %.
2362 of 2437 new or added lines in 21 files covered. (96.92%)
3147 of 3263 relevant lines covered (96.44%)
520.48 hits per line
|
function makeNext() { |
|
|
if (typeof process === "object" && typeof process.nextTick === "function") { |
34✔ |
|
return process.nextTick;
|
34✔ |
|
} else if (typeof setImmediate === "function") { |
|
NEW
|
return setImmediate;
|
× |
NEW
|
} else {
|
× |
NEW
|
return function next(f: () => void) { |
× |
NEW
|
setTimeout(f, 0);
|
× |
NEW
|
}; |
× |
NEW
|
} |
× |
|
} |
34✔ |
|
|
1✔ |
|
export default makeNext(); |
1✔ |