This looks like a regression in the spec from ES3 to ES5.

/be

Andreas Rossberg wrote:
On 4 July 2012 16:03, Mathias Bynens <[email protected] <mailto:[email protected]>> wrote:

    http://ecma-international.org/ecma-262/5.1/#sec-10.6 says:

    > When control enters an execution context for function code, an
    arguments
    > object is created unless (as specified in 10.5) the identifier
    arguments
    > 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:
https://bugs.ecmascript.org/describecomponents.cgi?product=ECMA-262
/Andreas

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to