Fixed minor bug with Safari and the test suite.

This commit is contained in:
John Resig 2006-10-03 08:45:16 +00:00
parent 301e2b6493
commit 215f785de6

View File

@ -55,7 +55,7 @@ function test(name, callback) {
try { try {
callback(); callback();
} catch(e) { } catch(e) {
if(typeof console != "undefined") { if( console && console.error ) {
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());