RE: How do arguments objects print?

2009-02-28 Thread Allen Wirfs-Brock
Here is what I propose for Array.prototype.toString (minus the formatting): 15.4.4.2Array.prototype.toString ( ) When the toString method is called, the following steps are taken: 1. Let array be the result of calling ToObject on the this value. 2. Let func be the result of calli

RE: How do arguments objects print?

2009-02-28 Thread Allen Wirfs-Brock
Good, this thread caused me to identify another bug, step 4 of 10.5 (create the arguments Object) currently sets the [[Constructor]] (???) internal property to Object. It should be using [[DefineOwnProperty]] to set the "constructor" property. This is necessary because Array.prototype specifi

Re: How do arguments objects print?

2009-02-28 Thread Brendan Eich
On Feb 27, 2009, at 11:59 PM, Mark S. Miller wrote: In the 23feb09 draft, arguments objects have a [[Class]] of "Object" and inherit their toString property from Array.prototype. Array.prototype.toString in effect simply does "return this.join();". However, Array.prototype.toString is not g