Permalink
Browse files

Added destroy method to Zlib object in zlib.js module

  • Loading branch information...
1 parent 4e85257 commit c15e6905c43af4bf3ed77ed72b6bd90efa3bc9b4 @ress ress committed with isaacs Jan 30, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/zlib.js
View
@@ -427,6 +427,12 @@ Zlib.prototype.resume = function() {
this._process();
};
+Zlib.prototype.destroy = function() {
+ this.readable = false;
+ this.writable = false;
+ this._ended = true;
+};
+
util.inherits(Deflate, Zlib);
util.inherits(Inflate, Zlib);
util.inherits(Gzip, Zlib);

0 comments on commit c15e690

Please sign in to comment.