mirror of https://github.com/nodejs/node.git
remove arrow from current source line
parent
ff05beeef3
commit
4ff15512f5
|
@ -977,23 +977,17 @@ Interface.prototype.list = function() {
|
||||||
lines[i] = lines[i].slice(wrapper.length);
|
lines[i] = lines[i].slice(wrapper.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
var breakpoint = client.breakpoints.some(function(bp) {
|
var current = lineno == 1 + client.currentSourceLine,
|
||||||
return bp.script === client.currentScript &&
|
breakpoint = client.breakpoints.some(function(bp) {
|
||||||
bp.line == lineno;
|
return bp.script === client.currentScript &&
|
||||||
});
|
bp.line == lineno;
|
||||||
|
}),
|
||||||
|
line = current ?
|
||||||
|
SourceUnderline(lines[i], client.currentSourceColumn)
|
||||||
|
:
|
||||||
|
lines[i];
|
||||||
|
|
||||||
if (lineno == 1 + client.currentSourceLine) {
|
self.print(leftPad(lineno, breakpoint && '*') + ' ' + line);
|
||||||
var nchars = intChars(lineno),
|
|
||||||
pointer = breakpoint ? '*' : '=';
|
|
||||||
for (var j = 1; j < nchars - 1; j++) {
|
|
||||||
pointer += '=';
|
|
||||||
}
|
|
||||||
pointer += '>';
|
|
||||||
self.print(pointer + ' ' +
|
|
||||||
SourceUnderline(lines[i], client.currentSourceColumn));
|
|
||||||
} else {
|
|
||||||
self.print(leftPad(lineno, breakpoint && '*') + ' ' + lines[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
self.resume();
|
self.resume();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue