I had to put the check for 'typeof console != "undefined"' back in, otherwise IE complains about console not being defined.

This commit is contained in:
Jörn Zaefferer 2006-10-03 10:54:55 +00:00
parent 3527e8f674
commit 374dbbe80a

View File

@ -55,7 +55,7 @@ function test(name, callback) {
try { try {
callback(); callback();
} catch(e) { } 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("Test " + name + " died, exception and test follows");
console.error(e); console.error(e);
console.warn(callback.toString()); console.warn(callback.toString());