We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd8107 commit 61cd7b9Copy full SHA for 61cd7b9
lib/zlib.js
@@ -775,8 +775,8 @@ function createConvenienceMethod(ctor, sync) {
775
};
776
}
777
778
-const kMaxBrotliParam = MathMax.apply(
779
- ObjectEntries(constants)
+const kMaxBrotliParam = MathMax(
+ ...ObjectEntries(constants)
780
.map(({ 0: key, 1: value }) => (key.startsWith('BROTLI_PARAM_') ? value : 0)),
781
);
782
const brotliInitParamsArray = new Uint32Array(kMaxBrotliParam + 1);
0 commit comments