From 04001fb591ee9adbe343d4b23aac48abce0809e2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 19 Mar 2010 21:51:04 -0700 Subject: [PATCH] Don't deprecate readyState, yet --- lib/net.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/net.js b/lib/net.js index 81073be7ca..8a433da381 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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) {