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: nodejs/node#43762
Refs: nodejs/node#43721
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Anemy authored and guangwong committed Oct 10, 2022
1 parent 1029988 commit 7a73ea9
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 @@ -1596,8 +1596,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 7a73ea9

Please sign in to comment.