Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/internal/zip/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// which walks the central directory into an array of headers.

const {
ArrayPrototypePush,
MathMax,
Number,
} = primordials;
Expand Down Expand Up @@ -604,7 +603,7 @@ function readCentralDirectory(buffer, count) {
if (header.diskNumber !== 0) {
throw new ERR_ZIP_UNSUPPORTED_FEATURE('multi-disk archives are not supported');
}
ArrayPrototypePush(result, header);
result[index] = header;
pos += header.byteLength;
}
if (pos !== buffer.length) {
Expand Down
Loading