diff --git a/lib/stream.js b/lib/stream.js index 90d4d5cca91..530b087e491 100644 --- a/lib/stream.js +++ b/lib/stream.js @@ -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;