diff options
-rw-r--r-- | build/test/data/testrunner.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 11921f9c7..0b6e08d1a 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()); |