Skip to content

Commit 61cd7b9

Browse files
anonrigaduh95
andauthored
Update zlib.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 2dd8107 commit 61cd7b9

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
@@ -775,8 +775,8 @@ function createConvenienceMethod(ctor, sync) {
775775
};
776776
}
777777

778-
const kMaxBrotliParam = MathMax.apply(
779-
ObjectEntries(constants)
778+
const kMaxBrotliParam = MathMax(
779+
...ObjectEntries(constants)
780780
.map(({ 0: key, 1: value }) => (key.startsWith('BROTLI_PARAM_') ? value : 0)),
781781
);
782782
const brotliInitParamsArray = new Uint32Array(kMaxBrotliParam + 1);

0 commit comments

Comments
 (0)