If you throw in JavaScript, the thrown error will usually propagate to the window.onerror handler which can stop the further execution of a script. 
Is there any way to get a stack trace from within a function without causing this halting of execution?