Merge branch 'skip-non-error-cause' of https://github.com/angrycat9000/jasmine

* Merges #2013 from @angrycat9000
* Fixes #2011
This commit is contained in:
Steve Gravrock
2023-07-19 18:28:04 -07:00
3 changed files with 22 additions and 2 deletions

View File

@@ -3580,7 +3580,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
lines.unshift(stackTrace.message);
}
if (error.cause) {
if (error.cause && error.cause instanceof Error) {
const substack = this.stack_(error.cause, {
messageHandling: 'require'
});