Commit 68116c3
committed
util: honor breakLength Infinity with unlimited depth
Preserve single-line formatting for util.inspect() when breakLength is
Infinity and depth is unlimited, while keeping explicit compact settings
and customized defaultOptions.compact behavior unchanged.
Add regression coverage for depth: Infinity, depth: null, explicit
compact: 3, explicit compact: 1, and custom defaultOptions.compact.
Fixes: #604751 parent 53bcd11 commit 68116c3
File tree
2 files changed
+40
-1
lines changed- lib/internal/util
- test/parallel
2 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
2663 | | - | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
2664 | 2667 | | |
2665 | 2668 | | |
2666 | 2669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1615 | 1615 | | |
1616 | 1616 | | |
1617 | 1617 | | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1618 | 1648 | | |
1619 | 1649 | | |
1620 | 1650 | | |
| |||
1631 | 1661 | | |
1632 | 1662 | | |
1633 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1634 | 1670 | | |
1635 | 1671 | | |
1636 | 1672 | | |
| |||
0 commit comments