I'm using Hoptoad to get error reports of my JavaScript and recently I got this error:
redeclaration of var console
the backtrace is not very useful:
internal: :
:0:in `{anonymous}()'
and I know it happened on "Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16" but I can't figure out how console would be re-declared. Do you have any ideas? Here's how I declare console:
if (typeof console == "undefined") {
var console = {
log: function() {
}
};
}