We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 788c57b commit 1a0004dCopy full SHA for 1a0004d
lib/repl.js
@@ -1332,7 +1332,7 @@ function _memory(cmd) {
1332
let up = cmd.match(/[})]/g);
1333
up = up ? up.length : 0;
1334
dw = dw ? dw.length : 0;
1335
- var depth = dw - up;
+ let depth = dw - up;
1336
1337
if (depth) {
1338
(function workIt() {
@@ -1351,9 +1351,9 @@ function _memory(cmd) {
1351
});
1352
} else if (depth < 0) {
1353
// Going... up.
1354
- var curr = self.lines.level.pop();
+ const curr = self.lines.level.pop();
1355
if (curr) {
1356
- var tmp = curr.depth + depth;
+ const tmp = curr.depth + depth;
1357
if (tmp < 0) {
1358
// More to go, recurse
1359
depth += curr.depth;
0 commit comments