What strict mode eval declarations did we really ban?
Mark S. Miller
erights at google.com
Tue Feb 10 19:25:22 PST 2009
2009/2/10 Allen Wirfs-Brock <Allen.Wirfs-Brock at microsoft.com>
> Waldemar's Mountain View notes said: - Agreed to disallow the use of
> "eval" as the name of a local variable, function parameter, etc. in strict
> Did we really mean that only function scoped declarations are so
> restricted? What about var declarations in strict global code?
> What about function declarations? Can they have "eval" as their function
> name if they are contained in strict function code or in strict code in
> The simplest story is that "eval" is banned from all declarations in strict
> mode code.
This is one of those happy cases where simplest is best. The net effect is
that ES3.1-strict can be explained as if "eval" is a keyword.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Es-discuss