From e5bb8391a84f62de2e7a818c142fbb2ad01ff9ba Mon Sep 17 00:00:00 2001 From: Jonas Westerlund Date: Wed, 4 Jul 2012 22:59:23 +0200 Subject: [PATCH] Do not assign to properties that only have getters It is an error in strict mode, and silent failure otherwise. --- lib/net.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/net.js b/lib/net.js index 9f03259d96..d6a01aa837 100644 --- a/lib/net.js +++ b/lib/net.js @@ -612,11 +612,6 @@ function afterWrite(status, handle, req) { function connect(self, address, port, addressType, localAddress) { - if (port) { - self.remotePort = port; - } - self.remoteAddress = address; - // TODO return promise from Socket.prototype.connect which // wraps _connectReq.