Skip to content

Commit

Permalink
debugger: align message with Node.js standard
Browse files Browse the repository at this point in the history
Node.js uses (or will use) _Ctrl+C_ with no spaces. To unify the
messages from inspect with other messages from the REPL and elsewhere,
make that change in node-inspect too.

PR-URL: #38400
Backport-PR-URL: #39446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and richardlau committed Jul 22, 2021
1 parent d74d67f commit b30ff35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/internal/inspector/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ function createRepl(inspector) {

repl.setPrompt('> ');

print('Press Ctrl + C to leave debug repl');
print('Press Ctrl+C to leave debug repl');
repl.displayPrompt();
},

Expand Down Expand Up @@ -1080,7 +1080,7 @@ function createRepl(inspector) {
repl.on('reset', initializeContext);

repl.defineCommand('interrupt', () => {
// We want this for testing purposes where sending CTRL-C can be tricky.
// We want this for testing purposes where sending Ctrl+C can be tricky.
repl.emit('SIGINT');
});

Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-debugger-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const assert = require('assert');
.then(() => {
assert.match(
cli.output,
/Press Ctrl \+ C to leave debug repl\n+> /,
/Press Ctrl\+C to leave debug repl\n+> /,
'shows hint for how to leave repl');
assert.doesNotMatch(cli.output, /debug>/, 'changes the repl style');
})
Expand Down

0 comments on commit b30ff35

Please sign in to comment.