-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
fix: remove Chai frames from .deep.equal
stack
#1124
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1124 +/- ##
==========================================
+ Coverage 93.68% 93.69% +0.01%
==========================================
Files 32 32
Lines 1646 1649 +3
Branches 396 396
==========================================
+ Hits 1542 1545 +3
Misses 104 104
Continue to review full report at Codecov.
|
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.
👍
Wait don't merge this. There's a problem in the logic: it assumes that flag was previously false. I'll fix in a sec... |
d862018
to
2f46af8
Compare
Fixed rare edge case where the new logic could disable a previously set flag. |
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.
good catch 😄 👍
I noticed implementation frames in the
.deep.equal
stack trace that @keithamus posted in this comment. Those frames were present because.deep.equal
called.eql
internally without locking the SSFI first. There weren't any tests verifying error messages and stack traces (viaerr(fn, msg)
) for.deep.equal
.