Repository navigation
Expose createErrDiff for diffing objects #51740
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
Description
Activity
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Feb 13, 2024 The current implementation is not ideal. I would not expose that for now. It is just a best effort implementation and not e.g., Myers .
Reacted by F. Levi and Jacob MorrisonJust a little update here: #54862 will switch the alg to Myers
Reacted by Toni Villena and Jacob Morrisongithub-actions commented
on Mar 14, 2025 on Mar 14, 2025 – with GitHub ActionsContributorMore actionsThere has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale
Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Mar 14, 2025 - removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Mar 15, 2025 6 remaining items
- added a commit that references this issue
on Mar 20, 2025 - added a commit that references this issue
on Mar 23, 2025 - added 2 commits that reference this issue
on Apr 16, 2025 - added 2 commits that reference this issue
on May 1, 2025
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
Type
Projects
- StatusShow more project fieldsAwaiting Triage
What is the problem this feature will solve?
I like the general format of the
deepStrictEqualdiff comparisons, but it would be nice to get this functionality "natively" to print a diff instead of forcing it to error to see a diff.What is the feature you are proposing to solve the problem?
Expose
createErrDifffromassertnode/lib/internal/assert/assertion_error.js
Line 79 in 544cfc5
What alternatives have you considered?
Userland diff tool, but if the code is already there it would be nice to expose it