Skip to content

Commit

Permalink
util: remove unicode support todo for perf implications
Browse files Browse the repository at this point in the history
Follow up from benchmarks in pr:
nodejs#43721
  • Loading branch information
Anemy committed Jul 10, 2022
1 parent 49a5e81 commit 81b4926
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,6 @@ function formatPrimitive(fn, value, ctx) {
trailer = `... ${remaining} more character${remaining > 1 ? 's' : ''}`;
}
if (ctx.compact !== true &&
// TODO(BridgeAR): Add unicode support. Use the readline getStringWidth
// function.
value.length > kMinLineLength &&
value.length > ctx.breakLength - ctx.indentationLvl - 4) {
return value
Expand Down

0 comments on commit 81b4926

Please sign in to comment.