Protect against a FF bug: Exceptions don't always have a message property even though they were instantiated with one. Using Error#toString alleviates this
This commit is contained in:
@@ -114,5 +114,5 @@ jasmine.Spec.prototype.getFullName = function() {
|
||||
jasmine.Spec.pendingSpecExceptionMessage = "=> marked Pending";
|
||||
|
||||
jasmine.Spec.isPendingSpecException = function(e) {
|
||||
return e.message.indexOf(jasmine.Spec.pendingSpecExceptionMessage) === 0;
|
||||
return e.toString().indexOf(jasmine.Spec.pendingSpecExceptionMessage) !== -1;
|
||||
};
|
||||
Reference in New Issue
Block a user