Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Added destroy method to Zlib object in zlib.js module
Browse files Browse the repository at this point in the history
  • Loading branch information
ress authored and isaacs committed Mar 13, 2012
1 parent 4e85257 commit c15e690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/zlib.js
Expand Up @@ -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);
Expand Down

0 comments on commit c15e690

Please sign in to comment.