While it is true that 'arguments' is not an array, the usability
question is "what presentation of |arguments| will be most
effective?".

I changed the presentation to be array-like, in part because arguments
are passed in to Javascript functions like apply as an array:
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply

I was able to make this change because of a contribution by
sevenfurnance of a test case that displays many array and non-array
objects.  That contribution is in our FBTest suite so I can change the
representation of |arguments| and  have some confidence I did not
break a bunch of other stuff.

The solution is not satisfactory however: there is no easy way to get
the |callee| property.

jjb

On May 29, 4:58 pm, LiuCougar <[email protected]> wrote:
> arguments is not an array (it does not have concat, push etc.)
>
> so I don't think this is a bug
>
>
>
> On Fri, May 29, 2009 at 16:39, Steven Roussey <[email protected]> wrote:
>
> > console.log(arguments) doesn't work...
>
> > var f=function(a,b,c,d){
> > console.log(arguments);
> > };
>
> > f(1,2,3);
>
> > It shows Object instead of the array.
>
> >http://code.google.com/p/fbug/issues/detail?id=1812
>
> --
> Frontend Lead, teampatent.com
> 生于忧患,死于安乐
> "People's characters are strengthened through struggle against
> difficulties; they are weakened by comfort."
> - Old Chinese adage
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to