Skip to content

Commit e58a5ca

Browse files
BridgeARMylesBorins
authored andcommittedDec 21, 2017
net: remove Socket.prototype.listen
The function was never documented and now throws a TypeError if used. PR-URL: #13735 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
1 parent b8ecf3c commit e58a5ca

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎lib/net.js

-9
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,6 @@ Socket.prototype.read = function(n) {
380380
return this.read(n);
381381
};
382382

383-
384-
// FIXME(joyeecheung): this method is neither documented nor tested
385-
Socket.prototype.listen = function() {
386-
debug('socket.listen');
387-
this.on('connection', arguments[0]);
388-
listenInCluster(this, null, null, null);
389-
};
390-
391-
392383
Socket.prototype.setTimeout = function(msecs, callback) {
393384
if (msecs === 0) {
394385
timers.unenroll(this);

0 commit comments

Comments
 (0)
Please sign in to comment.