Subj : Re: syntax check To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sun Jan 16 2005 06:26 pm Brendan Eich wrote: > js> s = Script('if (15 < 5 (7 != 3));'); > if (15 < 5(7 != 3)) { > } > > js> s() > typein:2: TypeError: number is not a function > > What JS engine are you using, btw? Is there a reason you want this > error to be caught only at compile time? > > /be > What is Script? Is this a function of the core language? I find it also in Mozilla, so it does not seem to be host specific. Is Script also implemented in Rhino? Which context does this script generated by the Script function use? Is it the same context as, where the Script function is called, or is it allways the global context from where the Script function was called? How old is this function? It is also present in NN4 on Linux, so it might be much older, but I never read anything about it, so I did not know that this function exists. To update my own documentation, I'm interested to know how old it is and whether it is part of the JavaScript core language or where it belongs too, if it is not part of the core. Greetings Georg -- Georg Maaß - bioshop.de D-76227 Karlsruhe, Westmarkstraße 82 HTML, XML / JavaScript, C++, Java, PHP, VB / CGI, JSP, ASP, ASP.net - The ultimate DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .