(fn)
| 8 | const getWindowSize = TTY.prototype.getWindowSize; |
| 9 | |
| 10 | function monkeyPatchGetWindowSize(fn) { |
| 11 | TTY.prototype.getWindowSize = function() { |
| 12 | TTY.prototype.getWindowSize = getWindowSize; |
| 13 | return fn.apply(this, arguments); |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | { |
| 18 | // tty.WriteStream constructor does not define columns and rows if an error |
no test coverage detected
searching dependent graphs…