mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Directly export the Stream constructor.
Also setting up a circular reference back to the stream as `Stream.Stream`, for backwards-compatibility. Fixes #1933
This commit is contained in:
committed by
Ryan Dahl
parent
239b3d62de
commit
58cb0fa639
@@ -26,7 +26,9 @@ function Stream() {
|
||||
events.EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(Stream, events.EventEmitter);
|
||||
exports.Stream = Stream;
|
||||
module.exports = Stream;
|
||||
// Backwards-compat with node 0.4.x
|
||||
Stream.Stream = Stream;
|
||||
|
||||
Stream.prototype.pipe = function(dest, options) {
|
||||
var source = this;
|
||||
|
||||
Reference in New Issue
Block a user