tls: scope loop vars with let
authorRich Trott <rtrott@gmail.com>
Mon, 25 Jan 2016 05:58:18 +0000 (21:58 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit67be41ae315a6d24fdb8fd649cd1e2bcf5cccb22
tree9ed52209dfffa3fc98d22b9765a51ea1ec41cbe9
parent1878cd5905178b9e1eda95aecfccabab000a0471
tls: scope loop vars with let

`lib/_tls_common.js` had instances of `for` loops that defined variables
with `var` such that they were re-declared in the same scope. This
change scopes those variables with `let` so that they are not
re-declared.

PR-URL: https://github.com/nodejs/node/pull/4853
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/_tls_common.js