@@ -31,7 +31,6 @@ const {
3131 ObjectFreeze,
3232 ObjectKeys,
3333 ObjectSetPrototypeOf,
34- ReflectApply,
3534 Symbol,
3635 Uint32Array,
3736} = primordials ;
@@ -255,7 +254,7 @@ function ZlibBase(opts, mode, handle, { flush, finishFlush, fullFlush }) {
255254 }
256255 }
257256
258- ReflectApply ( Transform , this , [ { autoDestroy : true , ...opts } ] ) ;
257+ Transform . call ( this , { autoDestroy : true , ...opts } ) ;
259258 this [ kError ] = null ;
260259 this . bytesWritten = 0 ;
261260 this . _handle = handle ;
@@ -681,7 +680,7 @@ function Zlib(opts, mode) {
681680 processCallback ,
682681 dictionary ) ;
683682
684- ReflectApply ( ZlibBase , this , [ opts , mode , handle , zlibDefaultOpts ] ) ;
683+ ZlibBase . call ( this , opts , mode , handle , zlibDefaultOpts ) ;
685684
686685 this . _level = level ;
687686 this . _strategy = strategy ;
@@ -724,7 +723,7 @@ function Deflate(opts) {
724723 if ( ! ( this instanceof Deflate ) ) {
725724 return deprecateInstantiation ( Deflate , 'DEP0184' , opts ) ;
726725 }
727- ReflectApply ( Zlib , this , [ opts , DEFLATE ] ) ;
726+ Zlib . call ( this , opts , DEFLATE ) ;
728727}
729728ObjectSetPrototypeOf ( Deflate . prototype , Zlib . prototype ) ;
730729ObjectSetPrototypeOf ( Deflate , Zlib ) ;
@@ -733,7 +732,7 @@ function Inflate(opts) {
733732 if ( ! ( this instanceof Inflate ) ) {
734733 return deprecateInstantiation ( Inflate , 'DEP0184' , opts ) ;
735734 }
736- ReflectApply ( Zlib , this , [ opts , INFLATE ] ) ;
735+ Zlib . call ( this , opts , INFLATE ) ;
737736}
738737ObjectSetPrototypeOf ( Inflate . prototype , Zlib . prototype ) ;
739738ObjectSetPrototypeOf ( Inflate , Zlib ) ;
@@ -742,7 +741,7 @@ function Gzip(opts) {
742741 if ( ! ( this instanceof Gzip ) ) {
743742 return deprecateInstantiation ( Gzip , 'DEP0184' , opts ) ;
744743 }
745- ReflectApply ( Zlib , this , [ opts , GZIP ] ) ;
744+ Zlib . call ( this , opts , GZIP ) ;
746745}
747746ObjectSetPrototypeOf ( Gzip . prototype , Zlib . prototype ) ;
748747ObjectSetPrototypeOf ( Gzip , Zlib ) ;
@@ -751,7 +750,7 @@ function Gunzip(opts) {
751750 if ( ! ( this instanceof Gunzip ) ) {
752751 return deprecateInstantiation ( Gunzip , 'DEP0184' , opts ) ;
753752 }
754- ReflectApply ( Zlib , this , [ opts , GUNZIP ] ) ;
753+ Zlib . call ( this , opts , GUNZIP ) ;
755754}
756755ObjectSetPrototypeOf ( Gunzip . prototype , Zlib . prototype ) ;
757756ObjectSetPrototypeOf ( Gunzip , Zlib ) ;
@@ -761,7 +760,7 @@ function DeflateRaw(opts) {
761760 if ( ! ( this instanceof DeflateRaw ) ) {
762761 return deprecateInstantiation ( DeflateRaw , 'DEP0184' , opts ) ;
763762 }
764- ReflectApply ( Zlib , this , [ opts , DEFLATERAW ] ) ;
763+ Zlib . call ( this , opts , DEFLATERAW ) ;
765764}
766765ObjectSetPrototypeOf ( DeflateRaw . prototype , Zlib . prototype ) ;
767766ObjectSetPrototypeOf ( DeflateRaw , Zlib ) ;
@@ -770,7 +769,7 @@ function InflateRaw(opts) {
770769 if ( ! ( this instanceof InflateRaw ) ) {
771770 return deprecateInstantiation ( InflateRaw , 'DEP0184' , opts ) ;
772771 }
773- ReflectApply ( Zlib , this , [ opts , INFLATERAW ] ) ;
772+ Zlib . call ( this , opts , INFLATERAW ) ;
774773}
775774ObjectSetPrototypeOf ( InflateRaw . prototype , Zlib . prototype ) ;
776775ObjectSetPrototypeOf ( InflateRaw , Zlib ) ;
@@ -779,7 +778,7 @@ function Unzip(opts) {
779778 if ( ! ( this instanceof Unzip ) ) {
780779 return deprecateInstantiation ( Unzip , 'DEP0184' , opts ) ;
781780 }
782- ReflectApply ( Zlib , this , [ opts , UNZIP ] ) ;
781+ Zlib . call ( this , opts , UNZIP ) ;
783782}
784783ObjectSetPrototypeOf ( Unzip . prototype , Zlib . prototype ) ;
785784ObjectSetPrototypeOf ( Unzip , Zlib ) ;
@@ -837,7 +836,7 @@ function Brotli(opts, mode) {
837836 this . _writeState = new Uint32Array ( 2 ) ;
838837 handle . init ( brotliInitParamsArray , this . _writeState , processCallback ) ;
839838
840- ReflectApply ( ZlibBase , this , [ opts , mode , handle , brotliDefaultOpts ] ) ;
839+ ZlibBase . call ( this , opts , mode , handle , brotliDefaultOpts ) ;
841840}
842841ObjectSetPrototypeOf ( Brotli . prototype , Zlib . prototype ) ;
843842ObjectSetPrototypeOf ( Brotli , Zlib ) ;
@@ -846,7 +845,7 @@ function BrotliCompress(opts) {
846845 if ( ! ( this instanceof BrotliCompress ) ) {
847846 return deprecateInstantiation ( BrotliCompress , 'DEP0184' , opts ) ;
848847 }
849- ReflectApply ( Brotli , this , [ opts , BROTLI_ENCODE ] ) ;
848+ Brotli . call ( this , opts , BROTLI_ENCODE ) ;
850849}
851850ObjectSetPrototypeOf ( BrotliCompress . prototype , Brotli . prototype ) ;
852851ObjectSetPrototypeOf ( BrotliCompress , Brotli ) ;
@@ -855,7 +854,7 @@ function BrotliDecompress(opts) {
855854 if ( ! ( this instanceof BrotliDecompress ) ) {
856855 return deprecateInstantiation ( BrotliDecompress , 'DEP0184' , opts ) ;
857856 }
858- ReflectApply ( Brotli , this , [ opts , BROTLI_DECODE ] ) ;
857+ Brotli . call ( this , opts , BROTLI_DECODE ) ;
859858}
860859ObjectSetPrototypeOf ( BrotliDecompress . prototype , Brotli . prototype ) ;
861860ObjectSetPrototypeOf ( BrotliDecompress , Brotli ) ;
0 commit comments