Skip to content

Commit

Permalink
debugger: remove unused function argument
Browse files Browse the repository at this point in the history
The `{colors: true}` removed here is ignored by the function it is being
sent to.

PR-URL: #38400
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 committed Apr 27, 2021
1 parent 01e0e32 commit 751d215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/inspector/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ function createRepl(inspector) {
const lines = watchedExpressions
.map((expr, idx) => {
const prefix = `${leftPad(idx, ' ', lastIndex)}: ${expr} =`;
const value = inspect(values[idx], { colors: true });
const value = inspect(values[idx]);
if (value.indexOf('\n') === -1) {
return `${prefix} ${value}`;
}
Expand Down

0 comments on commit 751d215

Please sign in to comment.