@@ -32,7 +32,7 @@ const {
32
32
Promise,
33
33
SafeSet,
34
34
SymbolAsyncIterator,
35
- Symbol
35
+ Symbol,
36
36
} = primordials ;
37
37
38
38
module . exports = Readable ;
@@ -54,7 +54,7 @@ const BufferList = require('internal/streams/buffer_list');
54
54
const destroyImpl = require ( 'internal/streams/destroy' ) ;
55
55
const {
56
56
getHighWaterMark,
57
- getDefaultHighWaterMark
57
+ getDefaultHighWaterMark,
58
58
} = require ( 'internal/streams/state' ) ;
59
59
60
60
const {
@@ -65,8 +65,8 @@ const {
65
65
ERR_OUT_OF_RANGE ,
66
66
ERR_STREAM_PUSH_AFTER_EOF ,
67
67
ERR_STREAM_UNSHIFT_AFTER_END_EVENT ,
68
- ERR_UNKNOWN_ENCODING
69
- }
68
+ ERR_UNKNOWN_ENCODING ,
69
+ } ,
70
70
} = require ( 'internal/errors' ) ;
71
71
const { validateObject } = require ( 'internal/validators' ) ;
72
72
@@ -1174,15 +1174,15 @@ ObjectDefineProperties(Readable.prototype, {
1174
1174
if ( this . _readableState ) {
1175
1175
this . _readableState . readable = ! ! val ;
1176
1176
}
1177
- }
1177
+ } ,
1178
1178
} ,
1179
1179
1180
1180
readableDidRead : {
1181
1181
__proto__ : null ,
1182
1182
enumerable : false ,
1183
1183
get : function ( ) {
1184
1184
return this . _readableState . dataEmitted ;
1185
- }
1185
+ } ,
1186
1186
} ,
1187
1187
1188
1188
readableAborted : {
@@ -1194,23 +1194,23 @@ ObjectDefineProperties(Readable.prototype, {
1194
1194
( this . _readableState . destroyed || this . _readableState . errored ) &&
1195
1195
! this . _readableState . endEmitted
1196
1196
) ;
1197
- }
1197
+ } ,
1198
1198
} ,
1199
1199
1200
1200
readableHighWaterMark : {
1201
1201
__proto__ : null ,
1202
1202
enumerable : false ,
1203
1203
get : function ( ) {
1204
1204
return this . _readableState . highWaterMark ;
1205
- }
1205
+ } ,
1206
1206
} ,
1207
1207
1208
1208
readableBuffer : {
1209
1209
__proto__ : null ,
1210
1210
enumerable : false ,
1211
1211
get : function ( ) {
1212
1212
return this . _readableState && this . _readableState . buffer ;
1213
- }
1213
+ } ,
1214
1214
} ,
1215
1215
1216
1216
readableFlowing : {
@@ -1223,46 +1223,46 @@ ObjectDefineProperties(Readable.prototype, {
1223
1223
if ( this . _readableState ) {
1224
1224
this . _readableState . flowing = state ;
1225
1225
}
1226
- }
1226
+ } ,
1227
1227
} ,
1228
1228
1229
1229
readableLength : {
1230
1230
__proto__ : null ,
1231
1231
enumerable : false ,
1232
1232
get ( ) {
1233
1233
return this . _readableState . length ;
1234
- }
1234
+ } ,
1235
1235
} ,
1236
1236
1237
1237
readableObjectMode : {
1238
1238
__proto__ : null ,
1239
1239
enumerable : false ,
1240
1240
get ( ) {
1241
1241
return this . _readableState ? this . _readableState . objectMode : false ;
1242
- }
1242
+ } ,
1243
1243
} ,
1244
1244
1245
1245
readableEncoding : {
1246
1246
__proto__ : null ,
1247
1247
enumerable : false ,
1248
1248
get ( ) {
1249
1249
return this . _readableState ? this . _readableState . encoding : null ;
1250
- }
1250
+ } ,
1251
1251
} ,
1252
1252
1253
1253
errored : {
1254
1254
__proto__ : null ,
1255
1255
enumerable : false ,
1256
1256
get ( ) {
1257
1257
return this . _readableState ? this . _readableState . errored : null ;
1258
- }
1258
+ } ,
1259
1259
} ,
1260
1260
1261
1261
closed : {
1262
1262
__proto__ : null ,
1263
1263
get ( ) {
1264
1264
return this . _readableState ? this . _readableState . closed : false ;
1265
- }
1265
+ } ,
1266
1266
} ,
1267
1267
1268
1268
destroyed : {
@@ -1281,15 +1281,15 @@ ObjectDefineProperties(Readable.prototype, {
1281
1281
// Backward compatibility, the user is explicitly
1282
1282
// managing destroyed.
1283
1283
this . _readableState . destroyed = value ;
1284
- }
1284
+ } ,
1285
1285
} ,
1286
1286
1287
1287
readableEnded : {
1288
1288
__proto__ : null ,
1289
1289
enumerable : false ,
1290
1290
get ( ) {
1291
1291
return this . _readableState ? this . _readableState . endEmitted : false ;
1292
- }
1292
+ } ,
1293
1293
} ,
1294
1294
1295
1295
} ) ;
@@ -1300,7 +1300,7 @@ ObjectDefineProperties(ReadableState.prototype, {
1300
1300
__proto__ : null ,
1301
1301
get ( ) {
1302
1302
return this . pipes . length ;
1303
- }
1303
+ } ,
1304
1304
} ,
1305
1305
1306
1306
// Legacy property for `paused`.
@@ -1311,8 +1311,8 @@ ObjectDefineProperties(ReadableState.prototype, {
1311
1311
} ,
1312
1312
set ( value ) {
1313
1313
this [ kPaused ] = ! ! value ;
1314
- }
1315
- }
1314
+ } ,
1315
+ } ,
1316
1316
} ) ;
1317
1317
1318
1318
// Exposed for testing purposes only.
@@ -1426,6 +1426,6 @@ Readable.wrap = function(src, options) {
1426
1426
destroy ( err , callback ) {
1427
1427
destroyImpl . destroyer ( src , err ) ;
1428
1428
callback ( err ) ;
1429
- }
1429
+ } ,
1430
1430
} ) . wrap ( src ) ;
1431
1431
} ;
0 commit comments