]> source.dussan.org Git - jquery.git/commitdiff
I had to put the check for 'typeof console != "undefined"' back in, otherwise IE...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 3 Oct 2006 10:54:55 +0000 (10:54 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 3 Oct 2006 10:54:55 +0000 (10:54 +0000)
build/test/data/testrunner.js

index 0b6e08d1a1d7de23c88c04d881e3a606cf5d5fbd..ea731274f0fd5a8748e3b0cd7f0253d2e4069ad4 100644 (file)
@@ -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());