File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export class ProtocolServer extends ee.EventEmitter implements VSCodeDebugAdapte
123
123
public start ( inStream : NodeJS . ReadableStream , outStream : NodeJS . WritableStream ) : void {
124
124
this . _sequence = 1 ;
125
125
this . _writableStream = outStream ;
126
- this . _rawData = new Buffer ( 0 ) ;
126
+ this . _rawData = Buffer . alloc ( 0 ) ;
127
127
128
128
inStream . on ( 'data' , ( data : Buffer ) => this . _handleData ( data ) ) ;
129
129
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class ProtocolClient extends ee.EventEmitter {
14
14
private outputStream : stream . Writable ;
15
15
private sequence : number ;
16
16
private pendingRequests = new Map < number , ( e : DebugProtocol . Response ) => void > ( ) ;
17
- private rawData = new Buffer ( 0 ) ;
17
+ private rawData = Buffer . alloc ( 0 ) ;
18
18
private contentLength : number ;
19
19
20
20
constructor ( ) {
You can’t perform that action at this time.
0 commit comments