Skip to content

Commit

Permalink
net: fix permanent deopt
Browse files Browse the repository at this point in the history
PR-URL: #13384
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
mscdex authored and jasnell committed Jun 7, 2017
1 parent 103de0e commit 41eaa4b
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 41eaa4b

Please sign in to comment.