net: fix permanent deopt

PR-URL: https://github.com/nodejs/node/pull/13384
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
Brian White 2017-06-02 02:10:11 -04:00
parent fc6f487f2e
commit d081548858
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

View File

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