Commit 167e59e
committed
util.inspect: fix numericSeparator for scientific notation numbers
When numericSeparator: true is set, util.inspect produces corrupted output
like '1e-.1e-_7' for numbers in scientific notation.
The fix adds an early return in formatNumber() for scientific notation
numbers (containing 'e') before the decimal-split + numeric separator
logic runs.
Fixes #629811 parent bb85d23 commit 167e59e
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
2213 | 2218 | | |
2214 | 2219 | | |
2215 | 2220 | | |
| |||
0 commit comments