mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
debugger: apply automatic lint fixes for _inspect.js
For issues that ESLint can fix automatically, fix them. PR-URL: https://github.com/nodejs/node/pull/38411 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
@@ -261,10 +261,10 @@ class NodeInspector {
|
||||
|
||||
print(text, appendNewline = false) {
|
||||
this.clearLine();
|
||||
this.stdout.write(appendNewline ? `${text}\n` : text);
|
||||
this.stdout.write(appendNewline ? `${text}\n` : text);
|
||||
}
|
||||
|
||||
#stdioBuffers = {stdout: '', stderr: ''};
|
||||
#stdioBuffers = { stdout: '', stderr: '' };
|
||||
childPrint(text, which) {
|
||||
const lines = (this.#stdioBuffers[which] + text)
|
||||
.split(/\r\n|\r|\n/g);
|
||||
@@ -283,7 +283,7 @@ class NodeInspector {
|
||||
this.repl.displayPrompt(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (textToPrint.endsWith('Waiting for the debugger to disconnect...\n')) {
|
||||
this.killChild();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user