diff options
author | dnlup <dwon.dnl@gmail.com> | 2019-11-12 19:06:53 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-11-23 08:27:16 +0300 |
commit | eb30b2c8199f00b711ef1c49b8cde3934836cbaa (patch) | |
tree | 6185df36ff6d577f947b4f3e04173436c6de1096 /lib/internal/readline | |
parent | aaeafd5c9fafeb4f49e187a105ac13285e534a4a (diff) |
readline: change var to let
PR-URL: https://github.com/nodejs/node/pull/30435
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'lib/internal/readline')
-rw-r--r-- | lib/internal/readline/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/readline/utils.js b/lib/internal/readline/utils.js index 31de512f74b..b6957f6e8a1 100644 --- a/lib/internal/readline/utils.js +++ b/lib/internal/readline/utils.js @@ -16,7 +16,7 @@ let isFullWidthCodePoint; function CSI(strings, ...args) { let ret = `${kEscape}[`; - for (var n = 0; n < strings.length; n++) { + for (let n = 0; n < strings.length; n++) { ret += strings[n]; if (n < args.length) ret += args[n]; @@ -79,7 +79,7 @@ if (internalBinding('config').hasIntl) { str = stripVTControlCharacters(String(str)); - for (var i = 0; i < str.length; i++) { + for (let i = 0; i < str.length; i++) { const code = str.codePointAt(i); if (code >= kUTF16SurrogateThreshold) { // Surrogates. |