Commit caab7d4
util: better number formatters
This makes sure the `%d`, `%f`, `%i` and `%s` formatters properly
visualize `-0`.
On top, this also switches to using a safer symbol toString function
by using the primordial function.
PR-URL: #27499
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 99e4a57 commit caab7d4
File tree
2 files changed
+13
-11
lines changed- lib/internal/util
- test/parallel
2 files changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| |||
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
1464 | | - | |
1465 | 1464 | | |
1466 | | - | |
| 1465 | + | |
1467 | 1466 | | |
1468 | 1467 | | |
1469 | 1468 | | |
| |||
1509 | 1508 | | |
1510 | 1509 | | |
1511 | 1510 | | |
1512 | | - | |
| 1511 | + | |
| 1512 | + | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | 1519 | | |
1523 | 1520 | | |
1524 | 1521 | | |
| |||
1534 | 1531 | | |
1535 | 1532 | | |
1536 | 1533 | | |
1537 | | - | |
| 1534 | + | |
1538 | 1535 | | |
1539 | 1536 | | |
1540 | 1537 | | |
| |||
1558 | 1555 | | |
1559 | 1556 | | |
1560 | 1557 | | |
1561 | | - | |
| 1558 | + | |
1562 | 1559 | | |
1563 | 1560 | | |
1564 | 1561 | | |
1565 | 1562 | | |
1566 | 1563 | | |
1567 | 1564 | | |
1568 | 1565 | | |
1569 | | - | |
| 1566 | + | |
1570 | 1567 | | |
1571 | 1568 | | |
1572 | 1569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| |||
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| 133 | + | |
| 134 | + | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| |||
0 commit comments