Browse Source

Don't deprecate readyState, yet

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
04001fb591
  1. 5
      lib/net.js

5
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) {

Loading…
Cancel
Save