Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make backtrace truncation much more robust.
This is necessary for the changes in rspec/rspec-support#210. That adds an additional stack frame to the parent exception (for the lambda that wraps `raise`) and our truncation wasn’t working properly with it. Really, the old way just happened to work. This is much more robust.
- Loading branch information
1 parent
4fa21d0
commit 59a30e8
Showing
2 changed files
with
138 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters