myXMLHTTPRequestObject.onreadystatechange = function () { throw "hello". } This will report "undefined" in the error console, whereas it reports "hello" from everywhere else it could be thrown.
Created attachment 19256 [details] test case I'm interested in which cases work though - XMLHttpRequest, XPathEvaluator and a plain timeout all seem to work in the same way.
(In reply to comment #1) > Created an attachment (id=19256) [edit] > test case > > I'm interested in which cases work though - XMLHttpRequest, XPathEvaluator and > a plain timeout all seem to work in the same way. > Just doing <script> throw "yikes" </script> works
Right - apparently, all callbacks are affected. This looks like an easy fix, but I'd like to look into providing line numbers and getting rid of code duplication at the same time.
See also: bug 18232, bug 18234.
This basically makes debugging in Safari impossible. I really think that this should be a P1 given that any bug you have in any ajax code requires you to do alert debugging essentially.
<rdar://problem/5908156>
thank you kilzer
Fixed in r35253