Skip to content

Commit

Permalink
util: remove unicode support todo for perf implications
Browse files Browse the repository at this point in the history
PR-URL: #43762
Refs: #43721
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Anemy authored Jul 24, 2022
1 parent 31d9edc commit 294ccf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1598,8 +1598,9 @@ 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.
// We do not support handling unicode characters width with
// the readline getStringWidth function as there are
// performance implications.
value.length > kMinLineLength &&
value.length > ctx.breakLength - ctx.indentationLvl - 4) {
return value
Expand Down

0 comments on commit 294ccf3

Please sign in to comment.