We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 600929d commit ef767a2Copy full SHA for ef767a2
lib/repl.js
@@ -1319,7 +1319,7 @@ function _memory(cmd) {
1319
let up = cmd.match(/[})]/g);
1320
up = up ? up.length : 0;
1321
dw = dw ? dw.length : 0;
1322
- var depth = dw - up;
+ let depth = dw - up;
1323
1324
if (depth) {
1325
(function workIt() {
@@ -1338,9 +1338,9 @@ function _memory(cmd) {
1338
});
1339
} else if (depth < 0) {
1340
// Going... up.
1341
- var curr = self.lines.level.pop();
+ const curr = self.lines.level.pop();
1342
if (curr) {
1343
- var tmp = curr.depth + depth;
+ const tmp = curr.depth + depth;
1344
if (tmp < 0) {
1345
// More to go, recurse
1346
depth += curr.depth;
0 commit comments