Subj : Re: Stopping Script Execution To : JZ From : Brendan Eich Date : Wed Sep 24 2003 11:40 pm JZ wrote: > Lets say we have a script like: > > for (var i = 0; i < 1000000; i++) { > // just a waste of time > } > > I want to be able to stop the execution of this script. I know if the script > is calling one of my native C functions, I can return JS_FALSE to stop the > script, but how do I stop a script such as the one above that doesn't call a > native function? Use JS_SetBranchCallback. > If I close the context/runtime I get an exception. "close"? Destroying them frees their memory, an obvious impurity. /be .