@@ -53,7 +53,7 @@ const {
53
53
} = require ( '_http_common' ) ;
54
54
const {
55
55
defaultTriggerAsyncIdScope,
56
- symbols : { async_id_symbol }
56
+ symbols : { async_id_symbol } ,
57
57
} = require ( 'internal/async_hooks' ) ;
58
58
const {
59
59
codes : {
@@ -70,9 +70,9 @@ const {
70
70
ERR_STREAM_ALREADY_FINISHED ,
71
71
ERR_STREAM_WRITE_AFTER_END ,
72
72
ERR_STREAM_NULL_VALUES ,
73
- ERR_STREAM_DESTROYED
73
+ ERR_STREAM_DESTROYED ,
74
74
} ,
75
- hideStackFrames
75
+ hideStackFrames,
76
76
} = require ( 'internal/errors' ) ;
77
77
const { validateString } = require ( 'internal/validators' ) ;
78
78
const { isUint8Array } = require ( 'internal/util/types' ) ;
@@ -177,36 +177,36 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'writableFinished', {
177
177
this . outputSize === 0 &&
178
178
( ! this . socket || this . socket . writableLength === 0 )
179
179
) ;
180
- }
180
+ } ,
181
181
} ) ;
182
182
183
183
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableObjectMode' , {
184
184
__proto__ : null ,
185
185
get ( ) {
186
186
return false ;
187
- }
187
+ } ,
188
188
} ) ;
189
189
190
190
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableLength' , {
191
191
__proto__ : null ,
192
192
get ( ) {
193
193
return this . outputSize + ( this . socket ? this . socket . writableLength : 0 ) ;
194
- }
194
+ } ,
195
195
} ) ;
196
196
197
197
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableHighWaterMark' , {
198
198
__proto__ : null ,
199
199
get ( ) {
200
200
return this . socket ? this . socket . writableHighWaterMark : HIGH_WATER_MARK ;
201
- }
201
+ } ,
202
202
} ) ;
203
203
204
204
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableCorked' , {
205
205
__proto__ : null ,
206
206
get ( ) {
207
207
const corked = this . socket ? this . socket . writableCorked : 0 ;
208
208
return corked + this [ kCorked ] ;
209
- }
209
+ } ,
210
210
} ) ;
211
211
212
212
ObjectDefineProperty ( OutgoingMessage . prototype , '_headers' , {
@@ -227,7 +227,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headers', {
227
227
headers [ StringPrototypeToLowerCase ( name ) ] = [ name , val [ name ] ] ;
228
228
}
229
229
}
230
- } , 'OutgoingMessage.prototype._headers is deprecated' , 'DEP0066' )
230
+ } , 'OutgoingMessage.prototype._headers is deprecated' , 'DEP0066' ) ,
231
231
} ) ;
232
232
233
233
ObjectDefineProperty ( OutgoingMessage . prototype , 'connection' , {
@@ -237,7 +237,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'connection', {
237
237
} ,
238
238
set : function ( val ) {
239
239
this . socket = val ;
240
- }
240
+ } ,
241
241
} ) ;
242
242
243
243
ObjectDefineProperty ( OutgoingMessage . prototype , '_headerNames' , {
@@ -272,7 +272,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', {
272
272
header [ 0 ] = val [ keys [ i ] ] ;
273
273
}
274
274
}
275
- } , 'OutgoingMessage.prototype._headerNames is deprecated' , 'DEP0066' )
275
+ } , 'OutgoingMessage.prototype._headerNames is deprecated' , 'DEP0066' ) ,
276
276
} ) ;
277
277
278
278
@@ -368,7 +368,7 @@ OutgoingMessage.prototype._send = function _send(data, encoding, callback, byteL
368
368
this . outputData . unshift ( {
369
369
data : header ,
370
370
encoding : 'latin1' ,
371
- callback : null
371
+ callback : null ,
372
372
} ) ;
373
373
this . outputSize += header . length ;
374
374
this . _onPendingData ( header . length ) ;
@@ -419,7 +419,7 @@ function _storeHeader(firstLine, headers) {
419
419
date : false ,
420
420
expect : false ,
421
421
trailer : false ,
422
- header : firstLine
422
+ header : firstLine ,
423
423
} ;
424
424
425
425
if ( headers ) {
@@ -806,19 +806,19 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'headersSent', {
806
806
__proto__ : null ,
807
807
configurable : true ,
808
808
enumerable : true ,
809
- get : function ( ) { return ! ! this . _header ; }
809
+ get : function ( ) { return ! ! this . _header ; } ,
810
810
} ) ;
811
811
812
812
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableEnded' , {
813
813
__proto__ : null ,
814
- get : function ( ) { return this . finished ; }
814
+ get : function ( ) { return this . finished ; } ,
815
815
} ) ;
816
816
817
817
ObjectDefineProperty ( OutgoingMessage . prototype , 'writableNeedDrain' , {
818
818
__proto__ : null ,
819
819
get : function ( ) {
820
820
return ! this . destroyed && ! this . finished && this [ kNeedDrain ] ;
821
- }
821
+ } ,
822
822
} ) ;
823
823
824
824
const crlf_buf = Buffer . from ( '\r\n' ) ;
@@ -1171,5 +1171,5 @@ module.exports = {
1171
1171
parseUniqueHeadersOption,
1172
1172
validateHeaderName,
1173
1173
validateHeaderValue,
1174
- OutgoingMessage
1174
+ OutgoingMessage,
1175
1175
} ;
0 commit comments