Commit 73f3a1c
util: make inspect aware of RegExp subclasses and null prototype
This adds support for inspect to distinguish regular expression
subclasses and ones with null prototype from "normal" regular
expressions.
PR-URL: #25192
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 58af085 commit 73f3a1cCopy full SHA for 73f3a1c
File tree
Expand file treeCollapse file tree
3 files changed
+39
-13
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
3 files changed
+39
-13
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-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
634 | 634 | |
635 | 635 | |
636 | 636 | |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
637 | 641 | |
638 | | - |
639 | | - |
| 642 | + |
640 | 643 | |
641 | 644 | |
642 | 645 | |
|
Collapse file
test/parallel/test-assert-deep.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert-deep.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
149 | 149 | |
150 | 150 | |
151 | 151 | |
152 | | - |
| 152 | + |
153 | 153 | |
154 | 154 | |
155 | 155 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+33-10Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1580 | 1580 | |
1581 | 1581 | |
1582 | 1582 | |
1583 | | - |
1584 | | - |
1585 | | - |
1586 | | - |
1587 | | - |
1588 | | - |
1589 | | - |
1590 | | - |
1591 | | - |
| 1583 | + |
1592 | 1584 | |
1593 | 1585 | |
1594 | 1586 | |
| ||
1609 | 1601 | |
1610 | 1602 | |
1611 | 1603 | |
| 1604 | + |
1612 | 1605 | |
1613 | 1606 | |
1614 | 1607 | |
| ||
1628 | 1621 | |
1629 | 1622 | |
1630 | 1623 | |
| 1624 | + |
1631 | 1625 | |
1632 | 1626 | |
1633 | 1627 | |
| ||
1652 | 1646 | |
1653 | 1647 | |
1654 | 1648 | |
1655 | | - |
| 1649 | + |
| 1650 | + |
1656 | 1651 | |
1657 | 1652 | |
1658 | 1653 | |
| ||
1665 | 1660 | |
1666 | 1661 | |
1667 | 1662 | |
| 1663 | + |
| 1664 | + |
| 1665 | + |
| 1666 | + |
| 1667 | + |
| 1668 | + |
| 1669 | + |
| 1670 | + |
| 1671 | + |
| 1672 | + |
| 1673 | + |
| 1674 | + |
| 1675 | + |
| 1676 | + |
| 1677 | + |
| 1678 | + |
| 1679 | + |
| 1680 | + |
| 1681 | + |
| 1682 | + |
| 1683 | + |
| 1684 | + |
| 1685 | + |
| 1686 | + |
| 1687 | + |
| 1688 | + |
| 1689 | + |
| 1690 | + |
1668 | 1691 | |
1669 | 1692 | |
1670 | 1693 | |
|
0 commit comments