diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js index ed58e89529ad3b..1c7dba2efdf2d6 100644 --- a/lib/internal/repl/await.js +++ b/lib/internal/repl/await.js @@ -100,7 +100,7 @@ function processTopLevelAwait(src) { body, ancestors: [], replace(from, to, str) { - for (var i = from; i < to; i++) { + for (let i = from; i < to; i++) { wrappedArray[i] = ''; } if (from === to) str += wrappedArray[from];