From 6cc09e00d347dfd3e29230837a252a551632c7d3 Mon Sep 17 00:00:00 2001 From: slackersoft Date: Sat, 11 Oct 2014 13:54:41 -0700 Subject: [PATCH] Oh right, IE doesn't have `console` by default [#80410002] --- src/console/ConsoleReporter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/console/ConsoleReporter.js b/src/console/ConsoleReporter.js index 187e1ad1..0a52e2eb 100644 --- a/src/console/ConsoleReporter.js +++ b/src/console/ConsoleReporter.js @@ -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() {},