summaryrefslogtreecommitdiff
path: root/lib/internal/repl
diff options
context:
space:
mode:
authorOliver Belaifa <oliver@belaifa.de>2019-11-12 15:43:20 +0000
committerRich Trott <rtrott@gmail.com>2019-11-22 19:36:46 -0800
commitd23a4cf7b71ae906e979d60b40cfee9bf375afb6 (patch)
tree117ddbeddf10c360e528e8a85b2548e6093e15c2 /lib/internal/repl
parente4812d62ebc7830d20872da44cfa4539d7ff0125 (diff)
downloadandroid-node-v8-d23a4cf7b71ae906e979d60b40cfee9bf375afb6.tar.gz
android-node-v8-d23a4cf7b71ae906e979d60b40cfee9bf375afb6.tar.bz2
android-node-v8-d23a4cf7b71ae906e979d60b40cfee9bf375afb6.zip
repl: change var to let
PR-URL: https://github.com/nodejs/node/pull/30428 Reviewed-By: Colin Ihrig <cjihrig@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>
Diffstat (limited to 'lib/internal/repl')
-rw-r--r--lib/internal/repl/history.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/internal/repl/history.js b/lib/internal/repl/history.js
index 5d90b40e00..1af974e83e 100644
--- a/lib/internal/repl/history.js
+++ b/lib/internal/repl/history.js
@@ -41,9 +41,9 @@ function setupHistory(repl, historyPath, ready) {
}
}
- var timer = null;
- var writing = false;
- var pending = false;
+ let timer = null;
+ let writing = false;
+ let pending = false;
repl.pause();
// History files are conventionally not readable by others:
// https://github.com/nodejs/node/issues/3392