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:
parent
3527e8f674
commit
374dbbe80a
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue