projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe2721
)
Don't deprecate readyState, yet
author
Ryan Dahl
<ry@tinyclouds.org>
Sat, 20 Mar 2010 04:51:04 +0000
(21:51 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Sat, 20 Mar 2010 04:51:07 +0000
(21:51 -0700)
lib/net.js
patch
|
blob
|
history
diff --git
a/lib/net.js
b/lib/net.js
index
81073be
..
8a433da
100644
(file)
--- 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) {