diff --git a/lib/net.js b/lib/net.js index 07344ea7c77..3bd3de9ed30 100644 --- a/lib/net.js +++ b/lib/net.js @@ -949,8 +949,8 @@ Socket.prototype.connect = function() { // TODO(joyeecheung): use destructuring when V8 is fast enough normalized = normalizeArgs(args); } - const options = normalized[0]; - const cb = normalized[1]; + var options = normalized[0]; + var cb = normalized[1]; if (this.write !== Socket.prototype.write) this.write = Socket.prototype.write;