File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ function WriteStream(fd) {
55
55
// Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671
56
56
this . _handle . setBlocking ( process . env . NODE_TTY_UNSAFE_ASYNC !== '1' ) ;
57
57
58
- var winSize = [ ] ;
58
+ var winSize = new Array ( 2 ) ;
59
59
var err = this . _handle . getWindowSize ( winSize ) ;
60
60
if ( ! err ) {
61
61
this . columns = winSize [ 0 ] ;
@@ -72,7 +72,7 @@ WriteStream.prototype.isTTY = true;
72
72
WriteStream . prototype . _refreshSize = function ( ) {
73
73
var oldCols = this . columns ;
74
74
var oldRows = this . rows ;
75
- var winSize = [ ] ;
75
+ var winSize = new Array ( 2 ) ;
76
76
var err = this . _handle . getWindowSize ( winSize ) ;
77
77
if ( err ) {
78
78
this . emit ( 'error' , errnoException ( err , 'getWindowSize' ) ) ;
You can’t perform that action at this time.
0 commit comments