(win, fn)
| 103 | * @param {function()} fn |
| 104 | */ |
| 105 | export function nextTick(win, fn) { |
| 106 | const P = win.Promise; |
| 107 | if (P) { |
| 108 | P.resolve()./*OK*/ then(fn); |
| 109 | } else { |
| 110 | win.setTimeout(fn, 0); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Run the function after all currently waiting sync scripts have been |
no test coverage detected