Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
net: fix permanent deopt
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#13384
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
mscdex committed Jun 5, 2017
1 parent fc6f487 commit d081548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d081548

Please sign in to comment.