@@ -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,7 +65,7 @@ const {
65
65
ERR_OUT_OF_RANGE ,
66
66
ERR_STREAM_PUSH_AFTER_EOF ,
67
67
ERR_STREAM_UNSHIFT_AFTER_END_EVENT ,
68
- }
68
+ } ,
69
69
} = require ( 'internal/errors' ) ;
70
70
const { validateObject } = require ( 'internal/validators' ) ;
71
71
@@ -1166,15 +1166,15 @@ ObjectDefineProperties(Readable.prototype, {
1166
1166
if ( this . _readableState ) {
1167
1167
this . _readableState . readable = ! ! val ;
1168
1168
}
1169
- }
1169
+ } ,
1170
1170
} ,
1171
1171
1172
1172
readableDidRead : {
1173
1173
__proto__ : null ,
1174
1174
enumerable : false ,
1175
1175
get : function ( ) {
1176
1176
return this . _readableState . dataEmitted ;
1177
- }
1177
+ } ,
1178
1178
} ,
1179
1179
1180
1180
readableAborted : {
@@ -1186,23 +1186,23 @@ ObjectDefineProperties(Readable.prototype, {
1186
1186
( this . _readableState . destroyed || this . _readableState . errored ) &&
1187
1187
! this . _readableState . endEmitted
1188
1188
) ;
1189
- }
1189
+ } ,
1190
1190
} ,
1191
1191
1192
1192
readableHighWaterMark : {
1193
1193
__proto__ : null ,
1194
1194
enumerable : false ,
1195
1195
get : function ( ) {
1196
1196
return this . _readableState . highWaterMark ;
1197
- }
1197
+ } ,
1198
1198
} ,
1199
1199
1200
1200
readableBuffer : {
1201
1201
__proto__ : null ,
1202
1202
enumerable : false ,
1203
1203
get : function ( ) {
1204
1204
return this . _readableState && this . _readableState . buffer ;
1205
- }
1205
+ } ,
1206
1206
} ,
1207
1207
1208
1208
readableFlowing : {
@@ -1215,46 +1215,46 @@ ObjectDefineProperties(Readable.prototype, {
1215
1215
if ( this . _readableState ) {
1216
1216
this . _readableState . flowing = state ;
1217
1217
}
1218
- }
1218
+ } ,
1219
1219
} ,
1220
1220
1221
1221
readableLength : {
1222
1222
__proto__ : null ,
1223
1223
enumerable : false ,
1224
1224
get ( ) {
1225
1225
return this . _readableState . length ;
1226
- }
1226
+ } ,
1227
1227
} ,
1228
1228
1229
1229
readableObjectMode : {
1230
1230
__proto__ : null ,
1231
1231
enumerable : false ,
1232
1232
get ( ) {
1233
1233
return this . _readableState ? this . _readableState . objectMode : false ;
1234
- }
1234
+ } ,
1235
1235
} ,
1236
1236
1237
1237
readableEncoding : {
1238
1238
__proto__ : null ,
1239
1239
enumerable : false ,
1240
1240
get ( ) {
1241
1241
return this . _readableState ? this . _readableState . encoding : null ;
1242
- }
1242
+ } ,
1243
1243
} ,
1244
1244
1245
1245
errored : {
1246
1246
__proto__ : null ,
1247
1247
enumerable : false ,
1248
1248
get ( ) {
1249
1249
return this . _readableState ? this . _readableState . errored : null ;
1250
- }
1250
+ } ,
1251
1251
} ,
1252
1252
1253
1253
closed : {
1254
1254
__proto__ : null ,
1255
1255
get ( ) {
1256
1256
return this . _readableState ? this . _readableState . closed : false ;
1257
- }
1257
+ } ,
1258
1258
} ,
1259
1259
1260
1260
destroyed : {
@@ -1273,15 +1273,15 @@ ObjectDefineProperties(Readable.prototype, {
1273
1273
// Backward compatibility, the user is explicitly
1274
1274
// managing destroyed.
1275
1275
this . _readableState . destroyed = value ;
1276
- }
1276
+ } ,
1277
1277
} ,
1278
1278
1279
1279
readableEnded : {
1280
1280
__proto__ : null ,
1281
1281
enumerable : false ,
1282
1282
get ( ) {
1283
1283
return this . _readableState ? this . _readableState . endEmitted : false ;
1284
- }
1284
+ } ,
1285
1285
} ,
1286
1286
1287
1287
} ) ;
@@ -1292,7 +1292,7 @@ ObjectDefineProperties(ReadableState.prototype, {
1292
1292
__proto__ : null ,
1293
1293
get ( ) {
1294
1294
return this . pipes . length ;
1295
- }
1295
+ } ,
1296
1296
} ,
1297
1297
1298
1298
// Legacy property for `paused`.
@@ -1303,8 +1303,8 @@ ObjectDefineProperties(ReadableState.prototype, {
1303
1303
} ,
1304
1304
set ( value ) {
1305
1305
this [ kPaused ] = ! ! value ;
1306
- }
1307
- }
1306
+ } ,
1307
+ } ,
1308
1308
} ) ;
1309
1309
1310
1310
// Exposed for testing purposes only.
@@ -1418,6 +1418,6 @@ Readable.wrap = function(src, options) {
1418
1418
destroy ( err , callback ) {
1419
1419
destroyImpl . destroyer ( src , err ) ;
1420
1420
callback ( err ) ;
1421
- }
1421
+ } ,
1422
1422
} ) . wrap ( src ) ;
1423
1423
} ;
0 commit comments