Creation of the `arguments` object
brendan at mozilla.org
Wed Jul 4 07:36:47 PDT 2012
This looks like a regression in the spec from ES3 to ES5.
Andreas Rossberg wrote:
> On 4 July 2012 16:03, Mathias Bynens <mathias at qiwi.be
> <mailto:mathias at qiwi.be>> wrote:
> http://ecma-international.org/ecma-262/5.1/#sec-10.6 says:
> > When control enters an execution context for function code, an
> > object is created unless (as specified in 10.5) the identifier
> > occurs as an Identifier in the function’s FormalParameterList or
> occurs as
> > the Identifier of a VariableDeclaration or FunctionDeclaration
> contained in
> > the function code.
> The text is wrong. The order of steps in the normative part of the
> spec (Section 10.5, esp. step 6) makes clear that variable
> declarations are not taken into account (but parameters and function
> declarations are).
> I suggest filing a bug, if there isn't one already:
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss