Commit e1fec22f authored by Andrew Oppenlander's avatar Andrew Oppenlander Committed by Fedor Indutny
Browse files

streams: set default hwm properly for Duplex



Default highWaterMark is now set properly when using stream Duplex's
writableObjectMode and readableObjectMode options.

Added condition to the already existing split objectMode test to ensure
the highWaterMark is being set to the correct default value on both the
ReadableState and WritableState for readableObjectMode and
writableObjectMode.

Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
parent 832d4db5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment