Visit Mozilla.org

Talk:Core JavaScript 1.5 Reference:Functions:arguments

From MDC

It is clearly indicated in ECMAscript-262, 3rd edition, section 10.1.8: Arguments Object

   * The value of the internal Prototype property of the arguments object is the original Object prototype object, the one that is the initial value of Object.prototype (see 15.2.3.1).

coming from http://72.14.207.104/search?q=cache:Lw1g7e4KXvsJ:www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf+ECMAScript-262+Language+Specifications+Edition+3&hl=en


Bugzilla bug 37211 and bugzilla bug 185530 also both confirm that the function arguments is an Object not an Array.

So, I'd say the summary and lots of sentence are wrong in the article or, at least, need to be upgraded. GT 18:15, 31 Aug 2005 (PDT)

Fixed --Maian 06:25, 9 September 2005 (PDT)

A bit of historic info about arguments not being an array:

[20-10-2005 17:14] <brendan> blalme here goes to the MS guy in ECMA edition 1
[20-10-2005 17:14] <brendan> blame to me for not fighting harder
[20-10-2005 17:15] <WeirdAl> they spec'd it so you couldn't make arguments an array?!?  :-O
[20-10-2005 17:15] <brendan> we went back and forth, he ended up insisting arguments not be an Array instance
[20-10-2005 17:15] <brendan> it's specified 
[20-10-2005 17:15] <wonko> ... why?!?
[20-10-2005 17:15] <brendan> optimization, i think

--Nickolay 17:36, 29 October 2005 (PDT)