debugger: removed unused function argument

PR-URL: https://github.com/nodejs/node/pull/38850
Backport-PR-URL: https://github.com/nodejs/node/pull/39446
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott 2021-05-29 19:37:01 -07:00 committed by Richard Lau
parent f9a4dcb30c
commit 052e1c5385
No known key found for this signature in database
GPG Key ID: C43CEC45C17AB93C

View File

@ -617,7 +617,7 @@ function createRepl(inspector) {
ArrayPrototypeMap(watchedExpressions, inspectValue)));
const lines = ArrayPrototypeMap(watchedExpressions, (expr, idx) => {
const prefix = `${leftPad(idx, ' ', lastIndex)}: ${expr} =`;
const value = inspect(values[idx], { colors: true });
const value = inspect(values[idx]);
if (!StringPrototypeIncludes(value, '\n')) {
return `${prefix} ${value}`;
}