Commit f3d826a 1 parent 4ddb263 commit f3d826a Copy full SHA for f3d826a
File tree 3 files changed +35
-0
lines changed
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,21 @@ function Duplex(options) {
63
63
if ( ! ( this instanceof Duplex ) )
64
64
return new Duplex ( options ) ;
65
65
66
+ this . _events = {
67
+ close : undefined ,
68
+ error : undefined ,
69
+ prefinish : undefined ,
70
+ finish : undefined ,
71
+ drain : undefined ,
72
+ data : undefined ,
73
+ end : undefined ,
74
+ pause : undefined ,
75
+ resume : undefined ,
76
+ readable : undefined ,
77
+ pipe : undefined ,
78
+ unpipe : undefined ,
79
+ } ;
80
+
66
81
this . _readableState = new Readable . ReadableState ( options , this , true ) ;
67
82
this . _writableState = new Writable . WritableState ( options , this , true ) ;
68
83
Original file line number Diff line number Diff line change @@ -316,6 +316,18 @@ function Readable(options) {
316
316
if ( ! ( this instanceof Readable ) )
317
317
return new Readable ( options ) ;
318
318
319
+ this . _events = {
320
+ close : undefined ,
321
+ error : undefined ,
322
+ data : undefined ,
323
+ end : undefined ,
324
+ pause : undefined ,
325
+ resume : undefined ,
326
+ readable : undefined ,
327
+ pipe : undefined ,
328
+ unpipe : undefined ,
329
+ } ;
330
+
319
331
this . _readableState = new ReadableState ( options , this , false ) ;
320
332
321
333
if ( options ) {
Original file line number Diff line number Diff line change @@ -382,6 +382,14 @@ function Writable(options) {
382
382
if ( ! ( this instanceof Writable ) )
383
383
return new Writable ( options ) ;
384
384
385
+ this . _events = {
386
+ close : undefined ,
387
+ error : undefined ,
388
+ prefinish : undefined ,
389
+ finish : undefined ,
390
+ drain : undefined ,
391
+ } ;
392
+
385
393
this . _writableState = new WritableState ( options , this , false ) ;
386
394
387
395
if ( options ) {
You can’t perform that action at this time.
0 commit comments