@@ -32,7 +32,7 @@ const {
3232 Promise,
3333 SafeSet,
3434 SymbolAsyncIterator,
35- Symbol
35+ Symbol,
3636} = primordials ;
3737
3838module . exports = Readable ;
@@ -54,7 +54,7 @@ const BufferList = require('internal/streams/buffer_list');
5454const destroyImpl = require ( 'internal/streams/destroy' ) ;
5555const {
5656 getHighWaterMark,
57- getDefaultHighWaterMark
57+ getDefaultHighWaterMark,
5858} = require ( 'internal/streams/state' ) ;
5959
6060const {
@@ -65,7 +65,7 @@ const {
6565 ERR_OUT_OF_RANGE ,
6666 ERR_STREAM_PUSH_AFTER_EOF ,
6767 ERR_STREAM_UNSHIFT_AFTER_END_EVENT ,
68- }
68+ } ,
6969} = require ( 'internal/errors' ) ;
7070const { validateObject } = require ( 'internal/validators' ) ;
7171
@@ -1166,15 +1166,15 @@ ObjectDefineProperties(Readable.prototype, {
11661166 if ( this . _readableState ) {
11671167 this . _readableState . readable = ! ! val ;
11681168 }
1169- }
1169+ } ,
11701170 } ,
11711171
11721172 readableDidRead : {
11731173 __proto__ : null ,
11741174 enumerable : false ,
11751175 get : function ( ) {
11761176 return this . _readableState . dataEmitted ;
1177- }
1177+ } ,
11781178 } ,
11791179
11801180 readableAborted : {
@@ -1186,23 +1186,23 @@ ObjectDefineProperties(Readable.prototype, {
11861186 ( this . _readableState . destroyed || this . _readableState . errored ) &&
11871187 ! this . _readableState . endEmitted
11881188 ) ;
1189- }
1189+ } ,
11901190 } ,
11911191
11921192 readableHighWaterMark : {
11931193 __proto__ : null ,
11941194 enumerable : false ,
11951195 get : function ( ) {
11961196 return this . _readableState . highWaterMark ;
1197- }
1197+ } ,
11981198 } ,
11991199
12001200 readableBuffer : {
12011201 __proto__ : null ,
12021202 enumerable : false ,
12031203 get : function ( ) {
12041204 return this . _readableState && this . _readableState . buffer ;
1205- }
1205+ } ,
12061206 } ,
12071207
12081208 readableFlowing : {
@@ -1215,46 +1215,46 @@ ObjectDefineProperties(Readable.prototype, {
12151215 if ( this . _readableState ) {
12161216 this . _readableState . flowing = state ;
12171217 }
1218- }
1218+ } ,
12191219 } ,
12201220
12211221 readableLength : {
12221222 __proto__ : null ,
12231223 enumerable : false ,
12241224 get ( ) {
12251225 return this . _readableState . length ;
1226- }
1226+ } ,
12271227 } ,
12281228
12291229 readableObjectMode : {
12301230 __proto__ : null ,
12311231 enumerable : false ,
12321232 get ( ) {
12331233 return this . _readableState ? this . _readableState . objectMode : false ;
1234- }
1234+ } ,
12351235 } ,
12361236
12371237 readableEncoding : {
12381238 __proto__ : null ,
12391239 enumerable : false ,
12401240 get ( ) {
12411241 return this . _readableState ? this . _readableState . encoding : null ;
1242- }
1242+ } ,
12431243 } ,
12441244
12451245 errored : {
12461246 __proto__ : null ,
12471247 enumerable : false ,
12481248 get ( ) {
12491249 return this . _readableState ? this . _readableState . errored : null ;
1250- }
1250+ } ,
12511251 } ,
12521252
12531253 closed : {
12541254 __proto__ : null ,
12551255 get ( ) {
12561256 return this . _readableState ? this . _readableState . closed : false ;
1257- }
1257+ } ,
12581258 } ,
12591259
12601260 destroyed : {
@@ -1273,15 +1273,15 @@ ObjectDefineProperties(Readable.prototype, {
12731273 // Backward compatibility, the user is explicitly
12741274 // managing destroyed.
12751275 this . _readableState . destroyed = value ;
1276- }
1276+ } ,
12771277 } ,
12781278
12791279 readableEnded : {
12801280 __proto__ : null ,
12811281 enumerable : false ,
12821282 get ( ) {
12831283 return this . _readableState ? this . _readableState . endEmitted : false ;
1284- }
1284+ } ,
12851285 } ,
12861286
12871287} ) ;
@@ -1292,7 +1292,7 @@ ObjectDefineProperties(ReadableState.prototype, {
12921292 __proto__ : null ,
12931293 get ( ) {
12941294 return this . pipes . length ;
1295- }
1295+ } ,
12961296 } ,
12971297
12981298 // Legacy property for `paused`.
@@ -1303,8 +1303,8 @@ ObjectDefineProperties(ReadableState.prototype, {
13031303 } ,
13041304 set ( value ) {
13051305 this [ kPaused ] = ! ! value ;
1306- }
1307- }
1306+ } ,
1307+ } ,
13081308} ) ;
13091309
13101310// Exposed for testing purposes only.
@@ -1418,6 +1418,6 @@ Readable.wrap = function(src, options) {
14181418 destroy ( err , callback ) {
14191419 destroyImpl . destroyer ( src , err ) ;
14201420 callback ( err ) ;
1421- }
1421+ } ,
14221422 } ) . wrap ( src ) ;
14231423} ;
0 commit comments