From 374dbbe80a3df30f52505a9c3ebd31efef711ec0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 3 Oct 2006 10:54:55 +0000 Subject: [PATCH] I had to put the check for 'typeof console != "undefined"' back in, otherwise IE complains about console not being defined. --- build/test/data/testrunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 0b6e08d..ea73127 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -55,7 +55,7 @@ function test(name, callback) { try { callback(); } catch(e) { - if( console && console.error ) { + if( typeof console != "undefined" && console.error && console.warn ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString()); -- 1.7.10.4