Commit 117e991
util: add inspection getter option
Currently it is not possible to inspect getters. To prevent any side
effects this should not become a default but under lots of
circumstances it would still be useful to inspect getters. This way
it is possible to actively opt into inspecting those.
PR-URL: #24852
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 390e050 commit 117e991Copy full SHA for 117e991
File tree
Expand file treeCollapse file tree
3 files changed
+68
-5
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
3 files changed
+68
-5
lines changedOpen diff view settings
Collapse file
+8Lines changed: 8 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
375 | 375 | |
376 | 376 | |
377 | 377 | |
| 378 | + |
| 379 | + |
| 380 | + |
378 | 381 | |
379 | 382 | |
380 | 383 | |
| ||
454 | 457 | |
455 | 458 | |
456 | 459 | |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
457 | 465 | |
458 | 466 | |
459 | 467 | |
|
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+27-5Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
102 | | - |
| 102 | + |
| 103 | + |
103 | 104 | |
104 | 105 | |
105 | 106 | |
| ||
167 | 168 | |
168 | 169 | |
169 | 170 | |
170 | | - |
| 171 | + |
| 172 | + |
171 | 173 | |
172 | 174 | |
173 | 175 | |
| ||
1131 | 1133 | |
1132 | 1134 | |
1133 | 1135 | |
1134 | | - |
1135 | | - |
| 1136 | + |
| 1137 | + |
| 1138 | + |
| 1139 | + |
| 1140 | + |
| 1141 | + |
| 1142 | + |
| 1143 | + |
| 1144 | + |
| 1145 | + |
| 1146 | + |
| 1147 | + |
| 1148 | + |
| 1149 | + |
| 1150 | + |
| 1151 | + |
| 1152 | + |
| 1153 | + |
| 1154 | + |
| 1155 | + |
| 1156 | + |
| 1157 | + |
1136 | 1158 | |
1137 | | - |
| 1159 | + |
1138 | 1160 | |
1139 | 1161 | |
1140 | 1162 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+33Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1764 | 1764 | |
1765 | 1765 | |
1766 | 1766 | |
| 1767 | + |
| 1768 | + |
| 1769 | + |
| 1770 | + |
| 1771 | + |
| 1772 | + |
| 1773 | + |
| 1774 | + |
| 1775 | + |
| 1776 | + |
| 1777 | + |
| 1778 | + |
| 1779 | + |
| 1780 | + |
| 1781 | + |
| 1782 | + |
| 1783 | + |
| 1784 | + |
| 1785 | + |
| 1786 | + |
| 1787 | + |
| 1788 | + |
| 1789 | + |
| 1790 | + |
| 1791 | + |
| 1792 | + |
| 1793 | + |
| 1794 | + |
| 1795 | + |
| 1796 | + |
| 1797 | + |
| 1798 | + |
| 1799 | + |
0 commit comments