diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-12-06 14:48:37 -0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-12-12 12:32:35 -0200 |
commit | e17dba7a4553081a4ae84e4f27bf89e589e27fed (patch) | |
tree | 4f77a06cc9d1370502976ee0838820505ac58e1b /lib | |
parent | b961d9fd83c963657c2305ed13ff447573eac852 (diff) | |
download | android-node-v8-e17dba7a4553081a4ae84e4f27bf89e589e27fed.tar.gz android-node-v8-e17dba7a4553081a4ae84e4f27bf89e589e27fed.tar.bz2 android-node-v8-e17dba7a4553081a4ae84e4f27bf89e589e27fed.zip |
net: remove Socket.prototype.listen
The function was never documented and now throws a TypeError if used.
PR-URL: https://github.com/nodejs/node/pull/13735
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/net.js b/lib/net.js index eec7619bc7..f962a848fa 100644 --- a/lib/net.js +++ b/lib/net.js @@ -380,15 +380,6 @@ Socket.prototype.read = function(n) { return this.read(n); }; - -// FIXME(joyeecheung): this method is neither documented nor tested -Socket.prototype.listen = function() { - debug('socket.listen'); - this.on('connection', arguments[0]); - listenInCluster(this, null, null, null); -}; - - Socket.prototype.setTimeout = function(msecs, callback) { if (msecs === 0) { timers.unenroll(this); |