From f86f5736da72ad4f3fb50692461222590e2f0258 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 26 Mar 2019 05:21:27 +0100 Subject: benchmark,lib: change var to const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/pull/26679 PR-URL: https://github.com/nodejs/node/pull/26915 Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann --- lib/tls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tls.js') diff --git a/lib/tls.js b/lib/tls.js index 024a81289a..422ed7958a 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -82,7 +82,7 @@ exports.getCiphers = internalUtil.cachedResult( function convertProtocols(protocols) { const lens = new Array(protocols.length); const buff = Buffer.allocUnsafe(protocols.reduce((p, c, i) => { - var len = Buffer.byteLength(c); + const len = Buffer.byteLength(c); if (len > 255) { throw new ERR_OUT_OF_RANGE('The byte length of the protocol at index ' + `${i} exceeds the maximum length.`, '<= 255', len, true); -- cgit v1.2.3