Subj : Re: Longjmp in error reporters? To : Alain Frisch From : Alain Frisch Date : Thu May 26 2005 02:58 pm Alain Frisch wrote: > Hello, > > I'm embedding SpiderMonkey in a language with a notion of exceptions. > Raising an exception is internally implemented with a longjmp. > > Is it safe to throw such an exception from an JSErrorReporter? > It would escape from the JS evaluator. I'm worried about its internal > state... At least the error message should be released by hand... Ok, I guess this is not a good idea. I will just copy the error in a global variable, and throw the exception after the evaluator has returned. -- Alain .