Why does jQuery swallow exceptions in $.ajax success callbacks?
<p>It looks like jQuery 1.6.4 deliberately swallows exceptions in $.ajax success callbacks.</p>

<p>If I do this:</p>

<pre><code>$.get('/', function() {console.log('doodoo');})
</code></pre>

<p>I get this in the (Chrome) console:</p>

<pre><code>Object
doodoo
</code></pre>

<p>But if I do this,</p>

<pre><code>$.get('/', function() {throw 'doodoo';})
</code></pre>

<p>I get no error in the console:</p>

<pre><code>Object
</code></pre>

<p>A quick look at the jQuery source code shows this is obviously intentional:</p>

<pre><code>try {
    while( callbacks[ 0 ] ) {
        callbacks.shift().apply( context, args );
    }
} catch(e) { }
</code></pre>

<p>Does anyone know why jQuery does this?</p>
