From cd5bb0e18ef98c8c166aa7993559de5aa00cbe19 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 26 Apr 2021 05:36:55 -0700 Subject: [PATCH] debugger: apply automatic lint fixes for _inspect.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For issues that ESLint can fix automatically, fix them. PR-URL: https://github.com/nodejs/node/pull/38411 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Darshan Sen --- lib/internal/inspector/_inspect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/inspector/_inspect.js b/lib/internal/inspector/_inspect.js index dcfa74aed3efb9..487c8837752e8e 100644 --- a/lib/internal/inspector/_inspect.js +++ b/lib/internal/inspector/_inspect.js @@ -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(); }