File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2121
2222'use strict' ;
2323
24- const { inherits } = require ( 'util' ) ;
2524const net = require ( 'net' ) ;
2625const { TTY , isTTY } = internalBinding ( 'tty_wrap' ) ;
2726const errors = require ( 'internal/errors' ) ;
@@ -61,7 +60,9 @@ function ReadStream(fd, options) {
6160 this . isRaw = false ;
6261 this . isTTY = true ;
6362}
64- inherits ( ReadStream , net . Socket ) ;
63+
64+ Object . setPrototypeOf ( ReadStream . prototype , net . Socket . prototype ) ;
65+ Object . setPrototypeOf ( ReadStream , net . Socket ) ;
6566
6667ReadStream . prototype . setRawMode = function ( flag ) {
6768 flag = ! ! flag ;
@@ -106,7 +107,9 @@ function WriteStream(fd) {
106107 this . rows = winSize [ 1 ] ;
107108 }
108109}
109- inherits ( WriteStream , net . Socket ) ;
110+
111+ Object . setPrototypeOf ( WriteStream . prototype , net . Socket . prototype ) ;
112+ Object . setPrototypeOf ( WriteStream , net . Socket ) ;
110113
111114WriteStream . prototype . isTTY = true ;
112115
You can’t perform that action at this time.
0 commit comments