Browse Source

Added destroy method to Zlib object in zlib.js module

v0.9.1-release
Christian Ress 13 years ago
committed by isaacs
parent
commit
c15e6905c4
  1. 6
      lib/zlib.js

6
lib/zlib.js

@ -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);

Loading…
Cancel
Save