-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assert: fix deepStrictEqual on errors when cause is present #55406
Conversation
2eb8889
to
d91d935
Compare
I tried to follow your suggestion @BridgeAR but doing that after inspection would turn |
7ef786b
to
fd17172
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55406 +/- ##
==========================================
+ Coverage 87.93% 88.43% +0.50%
==========================================
Files 654 654
Lines 187686 187697 +11
Branches 35819 36131 +312
==========================================
+ Hits 165038 165991 +953
+ Misses 15849 14946 -903
+ Partials 6799 6760 -39
|
80509ca
to
055d6a6
Compare
055d6a6
to
3bc9249
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for addressing this!
I just left a suggestion to match some further error types. Could you please also change the instanceof Error
in the original call site? That way it's coherent.
3bc9249
to
5ac53d2
Compare
Landed in 4da8d11 |
PR-URL: #55406 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #55406 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: nodejs#55406 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This commit does not land cleanly on |
PR-URL: #55406 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
I can do that, folks. EDIT: By the tags, it looks like @aduh95 backported it. |
PR-URL: #55406 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs #55310
Fixes #55310
This PR fixes AssertionError reporting when
cause
is present.