node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

Fixed issue 37, where entry.size is undefined.

Open filtersweep opened this issue 9 years ago • 0 comments

This is just a real quick first pass, with little knowledge of the rest of the codebase. The crux of the issue is that entry.size is unassigned before the "entry" event is emitted. I couldn't find anywhere where vars.uncompressedSize and vars.flags are re-assigned between the initial assignment and the usage after fileSizeKnown. So, I just moved that block up before "entry" is emitted.

filtersweep avatar Apr 13 '16 23:04 filtersweep