Skip to content

Commit 3bf4e0a

Browse files
anonrigaduh95
andcommitted
Update zlib.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 3e6daa1 commit 3bf4e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/zlib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@ function createConvenienceMethod(ctor, sync) {
779779
};
780780
}
781781

782-
const kMaxBrotliParam = MathMax.apply(
783-
ObjectEntries(constants)
782+
const kMaxBrotliParam = MathMax(
783+
...ObjectEntries(constants)
784784
.map(({ 0: key, 1: value }) => (key.startsWith('BROTLI_PARAM_') ? value : 0)),
785785
);
786786
const brotliInitParamsArray = new Uint32Array(kMaxBrotliParam + 1);

0 commit comments

Comments
 (0)