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 authored Sep 1, 2024
1 parent 2dd8107 commit 61cd7b9
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 @@ -775,8 +775,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 61cd7b9

Please sign in to comment.