title: redeclaration of var console
body: <p>I'm using Hoptoad to get error reports of my JavaScript and recently I got this error:</p>
  
  <blockquote>
    <p>redeclaration of var console</p>
  </blockquote>
  
  <p>the backtrace is not very useful:</p>
  
  <pre><code>internal: :
  
  :0:in `{anonymous}()'
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>if (typeof console == "undefined") {
    var console = {
      log: function() {
      }
    };
  }
  </code></pre>