Skip to content

Commit

Permalink
readline: change var to let
Browse files Browse the repository at this point in the history
PR-URL: #30435
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
dnlup authored and targos committed Dec 1, 2019
1 parent d7d4fe1 commit b10b72e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/readline/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit b10b72e

Please sign in to comment.