|
@ -658,7 +658,7 @@ Stream.prototype.write = function (data, encoding, fd) { |
|
|
if (this._writeQueue && this._writeQueue.length) { |
|
|
if (this._writeQueue && this._writeQueue.length) { |
|
|
// Slow. There is already a write queue, so let's append to it.
|
|
|
// Slow. There is already a write queue, so let's append to it.
|
|
|
if (this._writeQueueLast() === END_OF_FILE) { |
|
|
if (this._writeQueueLast() === END_OF_FILE) { |
|
|
throw new Error('Stream.close() called already; cannot write.'); |
|
|
throw new Error('Stream.end() called already; cannot write.'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (typeof data == 'string' && |
|
|
if (typeof data == 'string' && |
|
|