Subj : Re: SM: run a script from a native function To : Shanti Rao From : Brendan Eich Date : Wed Jan 07 2004 09:13 pm Shanti Rao wrote: > Hi folks, > > In SpiderMonkey, what's the proper way to call JS_EvaluateScript from > within a native function (itself invoked by a script)? Do you have to do > anything to reset the stack frame or context state? Do you want to make something like eval? If not, just use JS_EvaluateScript or one of its {UC, ForPrincipals} variants. If you want to make something like eval, you'll have to use private or debugger APIs. /be .