Commit 34905fc
util: mark iterator entries as such
It is possible to distinguish the entries iterator from others.
Expose that information to the users as well and improve the
Symbol.toStringTag handling by adding a special tag instead of
replacing the existent information.
PR-URL: #26222
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>1 parent fa8110a commit 34905fcCopy full SHA for 34905fc
File tree
Expand file treeCollapse file tree
2 files changed
+30
-11
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
2 files changed
+30
-11
lines changedOpen diff view settings
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+17-6Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
539 | 539 | |
540 | 540 | |
541 | 541 | |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
| 548 | + |
| 549 | + |
| 550 | + |
542 | 551 | |
543 | 552 | |
544 | 553 | |
| ||
593 | 602 | |
594 | 603 | |
595 | 604 | |
596 | | - |
| 605 | + |
597 | 606 | |
598 | 607 | |
599 | 608 | |
600 | | - |
| 609 | + |
601 | 610 | |
602 | 611 | |
603 | 612 | |
| ||
729 | 738 | |
730 | 739 | |
731 | 740 | |
732 | | - |
| 741 | + |
733 | 742 | |
734 | 743 | |
735 | | - |
| 744 | + |
736 | 745 | |
737 | 746 | |
738 | 747 | |
| ||
754 | 763 | |
755 | 764 | |
756 | 765 | |
757 | | - |
| 766 | + |
758 | 767 | |
759 | 768 | |
760 | 769 | |
| ||
1090 | 1099 | |
1091 | 1100 | |
1092 | 1101 | |
1093 | | - |
| 1102 | + |
1094 | 1103 | |
1095 | 1104 | |
| 1105 | + |
| 1106 | + |
1096 | 1107 | |
1097 | 1108 | |
1098 | 1109 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+13-5Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
976 | 976 | |
977 | 977 | |
978 | 978 | |
979 | | - |
| 979 | + |
| 980 | + |
| 981 | + |
| 982 | + |
| 983 | + |
| 984 | + |
980 | 985 | |
981 | 986 | |
982 | | - |
| 987 | + |
983 | 988 | |
984 | 989 | |
985 | 990 | |
| ||
995 | 1000 | |
996 | 1001 | |
997 | 1002 | |
998 | | - |
999 | | - |
| 1003 | + |
| 1004 | + |
| 1005 | + |
| 1006 | + |
1000 | 1007 | |
1001 | 1008 | |
| 1009 | + |
1002 | 1010 | |
1003 | 1011 | |
1004 | 1012 | |
| ||
1610 | 1618 | |
1611 | 1619 | |
1612 | 1620 | |
1613 | | - |
| 1621 | + |
1614 | 1622 | |
1615 | 1623 | |
1616 | 1624 | |
|
0 commit comments