mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Don't deprecate readyState, yet
This commit is contained in:
1 parent
ebe2721cbf
commit
04001fb591
1 file changed
-5
@@ -386,13 +386,8 @@ exports.createConnection = function (port, host) {
|
||||
};
|
||||
|
||||
|
||||
var readyStateMessage;
|
||||
Object.defineProperty(Stream.prototype, 'readyState', {
|
||||
get: function () {
|
||||
if (!readyStateMessage) {
|
||||
readyStateMessage = 'readyState is depricated. Use stream.readable or stream.writable';
|
||||
sys.error(readyStateMessage);
|
||||
}
|
||||
if (this._resolving) {
|
||||
return 'opening';
|
||||
} else if (this.readable && this.writable) {
|
||||
|
||||
Reference in new issue
Block a user