@@ -318,6 +318,7 @@ function Zlib(opts, mode) {
318
318
this . once ( 'end' , this . close ) ;
319
319
}
320
320
Object . setPrototypeOf ( Zlib . prototype , Transform . prototype ) ;
321
+ Object . setPrototypeOf ( Zlib , Transform ) ;
321
322
322
323
Object . defineProperty ( Zlib . prototype , '_closed' , {
323
324
configurable : true ,
@@ -648,27 +649,31 @@ function Deflate(opts) {
648
649
Zlib . call ( this , opts , DEFLATE ) ;
649
650
}
650
651
Object . setPrototypeOf ( Deflate . prototype , Zlib . prototype ) ;
652
+ Object . setPrototypeOf ( Deflate , Zlib ) ;
651
653
652
654
function Inflate ( opts ) {
653
655
if ( ! ( this instanceof Inflate ) )
654
656
return new Inflate ( opts ) ;
655
657
Zlib . call ( this , opts , INFLATE ) ;
656
658
}
657
659
Object . setPrototypeOf ( Inflate . prototype , Zlib . prototype ) ;
660
+ Object . setPrototypeOf ( Inflate , Zlib ) ;
658
661
659
662
function Gzip ( opts ) {
660
663
if ( ! ( this instanceof Gzip ) )
661
664
return new Gzip ( opts ) ;
662
665
Zlib . call ( this , opts , GZIP ) ;
663
666
}
664
667
Object . setPrototypeOf ( Gzip . prototype , Zlib . prototype ) ;
668
+ Object . setPrototypeOf ( Gzip , Zlib ) ;
665
669
666
670
function Gunzip ( opts ) {
667
671
if ( ! ( this instanceof Gunzip ) )
668
672
return new Gunzip ( opts ) ;
669
673
Zlib . call ( this , opts , GUNZIP ) ;
670
674
}
671
675
Object . setPrototypeOf ( Gunzip . prototype , Zlib . prototype ) ;
676
+ Object . setPrototypeOf ( Gunzip , Zlib ) ;
672
677
673
678
function DeflateRaw ( opts ) {
674
679
if ( opts && opts . windowBits === 8 ) opts . windowBits = 9 ;
@@ -677,20 +682,23 @@ function DeflateRaw(opts) {
677
682
Zlib . call ( this , opts , DEFLATERAW ) ;
678
683
}
679
684
Object . setPrototypeOf ( DeflateRaw . prototype , Zlib . prototype ) ;
685
+ Object . setPrototypeOf ( DeflateRaw , Zlib ) ;
680
686
681
687
function InflateRaw ( opts ) {
682
688
if ( ! ( this instanceof InflateRaw ) )
683
689
return new InflateRaw ( opts ) ;
684
690
Zlib . call ( this , opts , INFLATERAW ) ;
685
691
}
686
692
Object . setPrototypeOf ( InflateRaw . prototype , Zlib . prototype ) ;
693
+ Object . setPrototypeOf ( InflateRaw , Zlib ) ;
687
694
688
695
function Unzip ( opts ) {
689
696
if ( ! ( this instanceof Unzip ) )
690
697
return new Unzip ( opts ) ;
691
698
Zlib . call ( this , opts , UNZIP ) ;
692
699
}
693
700
Object . setPrototypeOf ( Unzip . prototype , Zlib . prototype ) ;
701
+ Object . setPrototypeOf ( Unzip , Zlib ) ;
694
702
695
703
function createConvenienceMethod ( ctor , sync ) {
696
704
if ( sync ) {
0 commit comments