Skip to content

Commit

Permalink
Update zlib.js
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
anonrig and aduh95 committed Sep 15, 2024
1 parent 3e6daa1 commit 3bf4e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ function createConvenienceMethod(ctor, sync) {
};
}

const kMaxBrotliParam = MathMax.apply(
ObjectEntries(constants)
const kMaxBrotliParam = MathMax(
...ObjectEntries(constants)
.map(({ 0: key, 1: value }) => (key.startsWith('BROTLI_PARAM_') ? value : 0)),
);
const brotliInitParamsArray = new Uint32Array(kMaxBrotliParam + 1);
Expand Down

0 comments on commit 3bf4e0a

Please sign in to comment.