diff --git a/lib/repl.js b/lib/repl.js index 9ca2dd5ab3f1e9..7f01a426beeacf 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1332,7 +1332,7 @@ function _memory(cmd) { let up = cmd.match(/[})]/g); up = up ? up.length : 0; dw = dw ? dw.length : 0; - var depth = dw - up; + let depth = dw - up; if (depth) { (function workIt() { @@ -1351,9 +1351,9 @@ function _memory(cmd) { }); } else if (depth < 0) { // Going... up. - var curr = self.lines.level.pop(); + const curr = self.lines.level.pop(); if (curr) { - var tmp = curr.depth + depth; + const tmp = curr.depth + depth; if (tmp < 0) { // More to go, recurse depth += curr.depth;