Subj : Re: Iterate all functions in script To : netscape.public.mozilla.jseng From : Forest Carlisle Date : Fri May 07 2004 02:01 pm If the token is of TOK_NAME type I evaluate it. I also evaulate the global scope as well as the specific function to initialize all variables. forest "Brendan Eich" wrote in message news:409BE3F1.1090502@meer.net... > Forest Carlisle wrote: > > I need to peek at every string parameter passed to a specific function. > > Not all strings passed to function calls are literals. How do you cope > with variable or expression parameters? > > > I > > can't just evaluate the script to get the parameters because of conditional > > if blocks and such that may not be true in every context. I know it is lame > > but I have to do it to allow my user to create templates my application uses > > to define what it should do on any given execution. > > What do these templates look like? Maybe there's a better way that > involves some kind of JS_FRIEND_API I can provide. > > /be .