File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2222'use strict' ; 
2323
2424const  { 
25-   Array, 
2625  NumberIsInteger, 
2726  ObjectSetPrototypeOf, 
2827}  =  primordials ; 
@@ -111,7 +110,7 @@ function WriteStream(fd) {
111110  // Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671 
112111  this . _handle . setBlocking ( true ) ; 
113112
114-   const  winSize  =  new   Array ( 2 ) ; 
113+   const  winSize  =  [ 0 ,   0 ] ; 
115114  const  err  =  this . _handle . getWindowSize ( winSize ) ; 
116115  if  ( ! err )  { 
117116    this . columns  =  winSize [ 0 ] ; 
@@ -131,7 +130,7 @@ WriteStream.prototype.hasColors = hasColors;
131130WriteStream . prototype . _refreshSize  =  function ( )  { 
132131  const  oldCols  =  this . columns ; 
133132  const  oldRows  =  this . rows ; 
134-   const  winSize  =  new   Array ( 2 ) ; 
133+   const  winSize  =  [ 0 ,   0 ] ; 
135134  const  err  =  this . _handle . getWindowSize ( winSize ) ; 
136135  if  ( err )  { 
137136    this . emit ( 'error' ,  new  ErrnoException ( err ,  'getWindowSize' ) ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments