Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix build error
  • Loading branch information
nissy-dev committed Mar 20, 2019
commit d18d5ecef45cedf8b01bd10357d69d408ab944c7
4 changes: 4 additions & 0 deletions lib/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ function ReadStream(fd, options) {
this.isRaw = false;
this.isTTY = true;
}

Object.setPrototypeOf(ReadStream.prototype, net.Socket.prototype);
Comment thread
ZYSzys marked this conversation as resolved.
Object.setPrototypeOf(ReadStream, net.Socket);

ReadStream.prototype.setRawMode = function(flag) {
flag = !!flag;
Expand Down Expand Up @@ -105,7 +107,9 @@ function WriteStream(fd) {
this.rows = winSize[1];
}
}

Object.setPrototypeOf(WriteStream.prototype, net.Socket.prototype);
Comment thread
ZYSzys marked this conversation as resolved.
Object.setPrototypeOf(WriteStream, net.Socket);

WriteStream.prototype.isTTY = true;

Expand Down