Skip parsing cause if it is not an Error object
* Merges #2013 from @angrycat9000 * Fixes #2011
This commit is contained in:
committed by
Steve Gravrock
parent
80b9d6c2e0
commit
8bc95ae2e3
@@ -67,7 +67,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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user