Firebug doesn't trap ReferenceError
<p>Given the following:</p>

<pre><code>var str = "apples";
try {eval(str)}
catch(e) {document.write('BAD CODE: '+e.name + ': '+e.message)}
</code></pre>

<p>Code works fine, the error message is printed out correctly, however, when run under Firebug, execution halts and Firebug pops up and says 'apples is not defined'. THIS SHOULD NOT HAPPEN, as the error is bracketed within a try-catch macro.</p>

<p>Try-catch properly catches other errors, such as TypeError and SyntaxError, and prevents them from popping up in Firebug. However, it doesn't trap ReferenceError.</p>

<p>All other browsers correctly trap ReferenceError.</p>

<p>Question: why does try-catch fail to trap this error? Is this an actual bug in Firebug?</p>
