forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squash! check windowsBits === 8 early
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,6 +193,10 @@ class Zlib extends Transform { | |
opts.windowBits > constants.Z_MAX_WINDOWBITS) { | ||
throw new RangeError('Invalid windowBits: ' + opts.windowBits); | ||
} | ||
if (mode === constants.DEFLATERAW && | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aqrln
Author
Owner
|
||
opts.windowBits === 8) { | ||
throw new RangeError('Unsupported windowBits for DeflateRaw: 8'); | ||
} | ||
} | ||
|
||
if (opts.level) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why not merging this with the previous
if
and use the existing error?