Subj : Re: Array and [ ] To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sun Jan 23 2005 03:53 pm Brendan Eich wrote: >> The production ArrayLiteral : [ Elision opt ] is evaluated as follows: >> 1. Create a new array as if by the expression "new Array()" > > > > The spec is unambiguous here. Elsewhere, it talks about "the original > value of the Object.prototype property", or similar such words. This > should be fixedd at some point, but I haven't managed to get the ECMA > TG1 group as a whole to go through the > http://www.mozilla.org/js/language/E262-3-errata.html yet, let alone > consider this question. There is no entry about 11.1.4. > Another way to fix things is to make Array readonly and permanent in the > global object (likewise all standard class constructors and other > predefined global properties). If it is not specified as read only then making it read only means implementing a bug. There is no need to make it impossible to users to customize their Array constructor. -- 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 .