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