We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a83057 commit 3ca5b2aCopy full SHA for 3ca5b2a
lib/repl.js
@@ -1323,7 +1323,7 @@ function _memory(cmd) {
1323
let up = cmd.match(/[})]/g);
1324
up = up ? up.length : 0;
1325
dw = dw ? dw.length : 0;
1326
- var depth = dw - up;
+ let depth = dw - up;
1327
1328
if (depth) {
1329
(function workIt() {
@@ -1342,9 +1342,9 @@ function _memory(cmd) {
1342
});
1343
} else if (depth < 0) {
1344
// Going... up.
1345
- var curr = self.lines.level.pop();
+ const curr = self.lines.level.pop();
1346
if (curr) {
1347
- var tmp = curr.depth + depth;
+ const tmp = curr.depth + depth;
1348
if (tmp < 0) {
1349
// More to go, recurse
1350
depth += curr.depth;
0 commit comments