Subj : Re: Using Rhino to report on JS variable/function scoping To : Mark__e From : Brendan Eich Date : Wed Sep 03 2003 11:44 am Mark__e wrote: >Brendan Eich wrote in message news:... > > >>Mark__e wrote: >>What about variables or functions created using eval? Is it ok if those >>are not included? >> >> > >They really need to be included as this is a likely scenario, > But you can't execute the script on the server side, so I don't see how you can possibly detect variables and functions created by eval of a computed string. >I was really trying to keep it all Java, but I will have a look at >this as well. > I wasn't recommending SpiderMonkey over Rhino -- I'm sure you can do similar things in Rhinoi. >Thanks I will look at that, although I suspect I will run into too >many problems actually getting the script to compile given the way >most people write client side javascript + I assume I would have to >simulate the dom objects etc. as well which woul dnot be trivial. > No. Compilation is not execution: the objects accessed at run-time need not be simulated in order to validate the input against the grammar and build a parse tree. /be .