Commit 215f785d authored by John Resig's avatar John Resig

Fixed minor bug with Safari and the test suite.

parent 301e2b64
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment