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:
Rich Trott
2021-04-26 05:36:55 -07:00
parent 3d070d0073
commit ea47bd2137

View File

@@ -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();
}