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:
@@ -1717,7 +1717,7 @@ 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;
|
||||
};jasmine.Suite = function(attrs) {
|
||||
this.env = attrs.env;
|
||||
this.id = attrs.id;
|
||||
|
||||
Reference in New Issue
Block a user