Oh right, IE doesn't have console by default

[#80410002]
This commit is contained in:
slackersoft
2014-10-11 13:54:41 -07:00
parent 6d6c31328b
commit 6cc09e00d3

View File

@@ -6,7 +6,9 @@ getJasmineRequireObj().ConsoleReporter = function() {
};
function ConsoleReporter(options) {
console.warn('ConsoleReporter is deprecated and will be removed in a future version.');
if (console && console.warn) {
console.warn('ConsoleReporter is deprecated and will be removed in a future version.');
}
var print = options.print,
showColors = options.showColors || false,
onComplete = options.onComplete || function() {},