quirky arguments

liorean liorean at gmail.com
Mon Jan 22 07:24:46 PST 2007


On 1/22/07, Hallvord R. M. Steen <hallvord at opera.com> wrote:
> ..but where in the ECMA-262 spec is this specified?
> In other words, is it a (cross-browser) bug or a feature?

Well, IIRC Netscape exposed the arguments object as a property on
function objects as well as a local variable. In fact, you could
access the local variables and arguments by name as properties on the
function object, if I'm not mistaken.

So, this might be some kind of backwards compatibility feature.

According to MDC, arguments as a property of the function object was
deprecated in JavaScript 1.4.
<uri:http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Functions:arguments>
-- 
David "liorean" Andersson



More information about the Es4-discuss mailing list