File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ added: v0.7.7
6363* ` mode ` {boolean} If ` true ` , configures the ` tty.ReadStream ` to operate as a
6464 raw device. If ` false ` , configures the ` tty.ReadStream ` to operate in its
6565 default mode. The ` readStream.isRaw ` property will be set to the resulting
66- mode.
66+ mode. Returns ` this ` - the read stream instance.
6767
6868Allows configuration of ` tty.ReadStream ` so that it operates as a raw device.
6969
Original file line number Diff line number Diff line change @@ -71,9 +71,10 @@ ReadStream.prototype.setRawMode = function(flag) {
7171 const err = this . _handle . setRawMode ( flag ) ;
7272 if ( err ) {
7373 this . emit ( 'error' , errors . errnoException ( err , 'setRawMode' ) ) ;
74- return ;
74+ return this ;
7575 }
7676 this . isRaw = flag ;
77+ return this ;
7778} ;
7879
7980function WriteStream ( fd ) {
You can’t perform that action at this time.
0 commit comments