MCPcopy Index your code
hub / github.com/nodejs/node / monkeyPatchGetWindowSize

Function monkeyPatchGetWindowSize

test/pseudo-tty/test-tty-window-size.js:10–15  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

8const getWindowSize = TTY.prototype.getWindowSize;
9
10function 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

Callers 1

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…