diff --git a/lib/repl.js b/lib/repl.js index c93afbc5d69396..035229f08af52a 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1319,7 +1319,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() { @@ -1338,9 +1338,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;