Commit 4140f49
util: fix to inspect getters that access this
Fixes: #36045
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #36052
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 63494e4 commit 4140f49Copy full SHA for 4140f49
File tree
Expand file treeCollapse file tree
2 files changed
+35
-3
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
2 files changed
+35
-3
lines changedOpen diff view settings
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
| 49 | + |
49 | 50 | |
50 | 51 | |
51 | 52 | |
| ||
627 | 628 | |
628 | 629 | |
629 | 630 | |
630 | | - |
| 631 | + |
631 | 632 | |
632 | 633 | |
633 | 634 | |
| ||
1677 | 1678 | |
1678 | 1679 | |
1679 | 1680 | |
1680 | | - |
| 1681 | + |
| 1682 | + |
1681 | 1683 | |
1682 | 1684 | |
1683 | 1685 | |
| ||
1698 | 1700 | |
1699 | 1701 | |
1700 | 1702 | |
1701 | | - |
| 1703 | + |
1702 | 1704 | |
1703 | 1705 | |
1704 | 1706 | |
|
Collapse file
test/parallel/test-util-inspect-getters-accessing-this.js
Copy file name to clipboard+30Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
0 commit comments