From 41eaa4b6a6b07bc657545315054ffc4fc4b51169 Mon Sep 17 00:00:00 2001 From: Brian White Date: Fri, 2 Jun 2017 02:10:11 -0400 Subject: [PATCH] net: fix permanent deopt PR-URL: https://github.com/nodejs/node/pull/13384 Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann --- lib/net.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net.js b/lib/net.js index 07344ea7c7794c..3bd3de9ed3079e 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;