Subj : Re: outer visibility of nested functions To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sat Jan 10 2004 06:35 pm Martin Honnen wrote: > Rhino yields the TypeError on A.B() so Spidermonkey and Rhino are > different here. > As far as ECMAScript edition 3 is concerned there is (as far as I know) > certainly nothing suggesting that inner functions need to be exposed as > properties of the outer function but it is also hard to find anything > that forbids that. NN4.x also keeps the scope of the function body of A separate from the function object A like you mentioned about Rhino. -- 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 .