@@ -257,19 +257,19 @@ ZipEntries.prototype = {
257257 this . zipCommentLength = 0 ;
258258 this . zipComment = [ ] ;
259259
260- let possibleHeaders = 0 ;
260+ var possibleHeaders = 0 ;
261261
262262 // Without central directory, have to just search for file entry magic bytes
263- const length = this . reader . length ;
264- for ( let i = 0 ; i < length - 4 ; i ++ ) {
263+ var length = this . reader . length ;
264+ for ( var i = 0 ; i < length - 4 ; i ++ ) {
265265 if (
266266 this . reader . byteAt ( i ) === 0x50 &&
267267 this . reader . byteAt ( i + 1 ) === 0x4B &&
268268 this . reader . byteAt ( i + 2 ) === 0x03 &&
269269 this . reader . byteAt ( i + 3 ) === 0x04
270270 ) {
271271 possibleHeaders ++ ;
272- const zipEntry = this . tryRecoverFileEntry ( i ) ;
272+ var zipEntry = this . tryRecoverFileEntry ( i ) ;
273273 if ( zipEntry ) {
274274 this . files . push ( zipEntry ) ;
275275 }
@@ -280,7 +280,7 @@ ZipEntries.prototype = {
280280 if ( possibleHeaders === 0 ) {
281281 throw new Error ( "Corrupted zip: no central directory or any file headers" ) ;
282282 }
283- throw new Error ( ` Corrupted zip: no central directory, and ${ possibleHeaders } possible local headers could not be recovered` ) ;
283+ throw new Error ( " Corrupted zip: no central directory, and " + possibleHeaders + " possible local headers could not be recovered" ) ;
284284 }
285285 } ,
286286 /**
@@ -291,7 +291,7 @@ ZipEntries.prototype = {
291291 tryRecoverFileEntry : function ( index ) {
292292 this . reader . setIndex ( index ) ;
293293
294- const zipEntry = new ZipEntry ( {
294+ var zipEntry = new ZipEntry ( {
295295 zip64 : this . zip64
296296 } , this . loadOptions ) ;
297297
0 commit comments