Fixes console check for IE8

- Was causing IE8 to hang for some reason
- Also reverts previous commit, not that issue was resolved

[#79533268][fixes #80356450]
This commit is contained in:
Gerg
2014-10-09 00:41:17 -07:00
parent f77071254a
commit c8cd2eabe5
4 changed files with 8 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ jasmineRequire.HtmlReporter = function(j$) {
var failures = [];
this.specDone = function(result) {
if(noExpectations(result) && console && console.error) {
if(noExpectations(result) && typeof console !== 'undefined' && typeof console.error !== 'undefined') {
console.error('Spec \'' + result.fullName + '\' has no expectations.');
}