Skip to content

Commit f9af156

Browse files
committed
fixup
1 parent 7af13b5 commit f9af156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/fs/streams.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const {
44
Array,
55
FunctionPrototypeBind,
66
MathMin,
7+
MathMax,
78
ObjectDefineProperty,
89
ObjectSetPrototypeOf,
910
PromisePrototypeThen,
@@ -152,7 +153,7 @@ function ReadStream(path, options) {
152153
// A little bit bigger buffer and water marks by default
153154
options = copyObject(getOptions(options, {}));
154155
if (options.highWaterMark === undefined)
155-
options.highWaterMark = Math.max(Buffer.poolSize, 64 * 1024);
156+
options.highWaterMark = MathMax(Buffer.poolSize, 64 * 1024);
156157

157158
if (options.autoDestroy === undefined) {
158159
options.autoDestroy = false;

0 commit comments

Comments
 (0)