Do not assign to properties that only have getters

It is an error in strict mode, and silent failure otherwise.
This commit is contained in:
Jonas Westerlund 2012-07-04 22:59:23 +02:00 committed by Nathan Rajlich
parent 93d4259cf0
commit e5bb8391a8

View File

@ -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.