mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
make 'readyState' available to CryptoStream
This commit is contained in:
committed by
Ryan Dahl
parent
2f6cb66009
commit
66b418d6f3
@@ -167,6 +167,9 @@ CryptoStream.prototype.destroy = function(err) {
|
||||
this.pair._destroy();
|
||||
};
|
||||
|
||||
CryptoStream.prototype.fd = -1;
|
||||
CryptoStream.prototype.__defineGetter__('readyState',
|
||||
net.Socket.prototype.__lookupGetter__('readyState'));
|
||||
|
||||
// Move decrypted, clear data out into the application.
|
||||
// From the user's perspective this occurs as a 'data' event
|
||||
|
||||
Reference in New Issue
Block a user