From 215f785de699015ba7221f3414807f9e7474ef4d Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 3 Oct 2006 08:45:16 +0000 Subject: [PATCH] Fixed minor bug with Safari and the test suite. --- 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 11921f9c..0b6e08d1 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(typeof console != "undefined") { + if( console && console.error ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString());