File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
22
'use strict' ;
23
23
24
24
const {
25
- Array,
26
25
NumberIsInteger,
27
26
ObjectSetPrototypeOf,
28
27
} = primordials ;
@@ -111,7 +110,7 @@ function WriteStream(fd) {
111
110
// Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671
112
111
this . _handle . setBlocking ( true ) ;
113
112
114
- const winSize = new Array ( 2 ) ;
113
+ const winSize = [ 0 , 0 ] ;
115
114
const err = this . _handle . getWindowSize ( winSize ) ;
116
115
if ( ! err ) {
117
116
this . columns = winSize [ 0 ] ;
@@ -131,7 +130,7 @@ WriteStream.prototype.hasColors = hasColors;
131
130
WriteStream . prototype . _refreshSize = function ( ) {
132
131
const oldCols = this . columns ;
133
132
const oldRows = this . rows ;
134
- const winSize = new Array ( 2 ) ;
133
+ const winSize = [ 0 , 0 ] ;
135
134
const err = this . _handle . getWindowSize ( winSize ) ;
136
135
if ( err ) {
137
136
this . emit ( 'error' , new ErrnoException ( err , 'getWindowSize' ) ) ;
You can’t perform that action at this time.
0 commit comments