I have been attempting, like many others, to implement reasonable server side logging of JS errors and have managed to log a lot of information with one vital element missing ... the call stack at the time the error was triggered.
Inside of onerror handlers the call stack can only be obtained using try/catch() and triggering an error. Unfortunately the call stack then only goes back as far as the onerror event, which is useless.
It would be hugely useful if the complete call stack (from the time the event was triggered) was available from within the onerror handler.
I know that the onerror event is proprietary but are there any plans to add it to HTML5? If so, will the stack trace be made available?