mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
@ -55,7 +55,7 @@ function test(name, callback) {
|
|||||||
try {
|
try {
|
||||||
callback();
|
callback();
|
||||||
} catch(e) {
|
} 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("Test " + name + " died, exception and test follows");
|
||||||
console.error(e);
|
console.error(e);
|
||||||
console.warn(callback.toString());
|
console.warn(callback.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user