Ajax: Protect against exceptions thrown synchronously by xhr.send
When xhr.send throws an exception synchronously, the onerror handler may have
been called already which, unchecked, makes the exception bubble up outside of
We now catch the exception pre-emptively and only rethrow if we know it hasn't
already been notified through the onerror handler.
Loading branch information...
Jan 25, 2014