Subj : Re: server-side compilation using spidermonkey To : netscape.public.mozilla.jseng From : wyl_lyf Date : Fri Jan 07 2005 06:44 am Brendan Eich wrote: > What are you talking about, exactly? Please give a complete example. Sorry for the confusion. I will give an example/scenario. 1) I'm using the sample program (named test.c) you provided with JS_BufferIsCompilableUnit. This is my input file (example.js). a) example.js: var d1=new Dateabc("October 12, 1988") print(d.getDate1()); b) run ./test example.js c) prints out OK. but the javascript is incorrect? 2) What I'm trying to do. a) I have the input file : Response.Write ("\n"); Response.Write ("\n"); Response.Write ("Customer\n"); Response.Write ("\n > "); Response.Write ("\n"); Response.Write ("\n"); Response.Write (" \n"); mytest.example(); Response.Write (" \n"); Response.Write ("\n"); Response.Write ("\n"); b)I'm not interested in the response.write, etc. just the ones within the parenthesis and check for its syntax. But the thing is I have this input file with response.write. Is there a way for spidermonkey to ignore the objects not known and just check the ones enclosed in the parenthesis? Thanks! .