|
@ -46,7 +46,7 @@ function ReadableState(options, stream) { |
|
|
// the minimum number of bytes to buffer before emitting 'readable'
|
|
|
// the minimum number of bytes to buffer before emitting 'readable'
|
|
|
// default to pushing everything out as fast as possible.
|
|
|
// default to pushing everything out as fast as possible.
|
|
|
this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ? |
|
|
this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ? |
|
|
options.lowWaterMark : 1024; |
|
|
options.lowWaterMark : 0; |
|
|
|
|
|
|
|
|
// cast to ints.
|
|
|
// cast to ints.
|
|
|
assert(typeof this.bufferSize === 'number'); |
|
|
assert(typeof this.bufferSize === 'number'); |
|
|