I am building a bootstrapped extension for Firefox (not using the Add-on SDK since I need tcp sockets). Although all my IO calls etc. are protected by a try/catch, I want to have a global error handler just in case. Bootstrapped extensions do not have access to a window object so the window.onerror route is out of the question. Any suggestions as to how I can go about this?
Thanks in advance.