File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
'use strict' ;
23
23
24
- const { inherits } = require ( 'util' ) ;
25
24
const net = require ( 'net' ) ;
26
25
const { TTY , isTTY } = internalBinding ( 'tty_wrap' ) ;
27
26
const errors = require ( 'internal/errors' ) ;
@@ -61,7 +60,9 @@ function ReadStream(fd, options) {
61
60
this . isRaw = false ;
62
61
this . isTTY = true ;
63
62
}
64
- inherits ( ReadStream , net . Socket ) ;
63
+
64
+ Object . setPrototypeOf ( ReadStream . prototype , net . Socket . prototype ) ;
65
+ Object . setPrototypeOf ( ReadStream , net . Socket ) ;
65
66
66
67
ReadStream . prototype . setRawMode = function ( flag ) {
67
68
flag = ! ! flag ;
@@ -106,7 +107,9 @@ function WriteStream(fd) {
106
107
this . rows = winSize [ 1 ] ;
107
108
}
108
109
}
109
- inherits ( WriteStream , net . Socket ) ;
110
+
111
+ Object . setPrototypeOf ( WriteStream . prototype , net . Socket . prototype ) ;
112
+ Object . setPrototypeOf ( WriteStream , net . Socket ) ;
110
113
111
114
WriteStream . prototype . isTTY = true ;
112
115
You can’t perform that action at this time.
0 commit comments