Re:You should be using Google Analytics to log your startup'...
by rakeshpai on Thursday April 05, 2012 @11:18AM
(#3802915)
It isn't possible to have a single "wrapper" try/catch in JS, because of the event-loop nature of most JS hosts. This is because functions that are scheduled to run on the event loop (say, using a button click, or a ajax call), aren't in the same call-stack as the code that defined it. Since they aren't in the same call-stack, an outer try/catch won't work on the inner callback.
[ Parent
| on HN ]
There are no comments on this comment yet.