>-----Original Message-----
>From: Mark S. Miller [mailto:[email protected]]
>Sent: Thursday, February 12, 2009 4:58 PM
>
>Good. So does anyone object to ES3.1-strict imposing the same
>restrictions on the magic name "arguments" as we will on "eval"?
>

In strict mode, "arguments" is already defined using an ImmutableBinding so 
assigning to it will fail in a manner similar to assignment to eval.  We 
probably should list both of these assignment situations in section 16 as 
errors that can be reported at parse time.

As currently specified strict code can declare a formal parameter, var, or 
function named "arguments" but doing so blocks creation of an arguments object 
and its binding.

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

Reply via email to