@@ -125,7 +125,7 @@ class FlateStream extends DecodeStream {
125125 constructor ( str , maybeLength ) {
126126 super ( maybeLength ) ;
127127
128- this . str = str ;
128+ this . stream = str ;
129129 this . dict = str . dict ;
130130
131131 const cmf = str . getByte ( ) ;
@@ -161,8 +161,8 @@ class FlateStream extends DecodeStream {
161161 }
162162
163163 async asyncGetBytes ( ) {
164- this . str . reset ( ) ;
165- const bytes = this . str . getBytes ( ) ;
164+ this . stream . reset ( ) ;
165+ const bytes = this . stream . getBytes ( ) ;
166166
167167 try {
168168 const { readable, writable } = new DecompressionStream ( "deflate" ) ;
@@ -200,11 +200,11 @@ class FlateStream extends DecodeStream {
200200 // decoder.
201201 // We already get the bytes from the underlying stream, so we just reuse
202202 // them to avoid get them again.
203- this . str = new Stream (
203+ this . stream = new Stream (
204204 bytes ,
205205 2 /* = header size (see ctor) */ ,
206206 bytes . length ,
207- this . str . dict
207+ this . stream . dict
208208 ) ;
209209 this . reset ( ) ;
210210 return null ;
@@ -216,7 +216,7 @@ class FlateStream extends DecodeStream {
216216 }
217217
218218 getBits ( bits ) {
219- const str = this . str ;
219+ const str = this . stream ;
220220 let codeSize = this . codeSize ;
221221 let codeBuf = this . codeBuf ;
222222
@@ -236,7 +236,7 @@ class FlateStream extends DecodeStream {
236236 }
237237
238238 getCode ( table ) {
239- const str = this . str ;
239+ const str = this . stream ;
240240 const codes = table [ 0 ] ;
241241 const maxLen = table [ 1 ] ;
242242 let codeSize = this . codeSize ;
@@ -312,7 +312,7 @@ class FlateStream extends DecodeStream {
312312
313313 readBlock ( ) {
314314 let buffer , hdr , len ;
315- const str = this . str ;
315+ const str = this . stream ;
316316 // read block header
317317 try {
318318 hdr = this . getBits ( 3 ) ;
0 commit comments