Mark S. Miller wrote: > 2009/2/10 Allen Wirfs-Brock <[email protected]> > >> 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.
Agreed. Allen Wirfs-Brock wrote: > However, now that I think a little bit more about, it would be reasonable > to say that any strict mode declaration of "eval" is an EvalError. I was > going to say it was a SyntaxError but EvalError is more specific and in > line with its ES3 heriatage. Doesn't matter to me whether it is EvalError or SyntaxError. However, are there other identifiers that should be banned by the same rule? For example, 'arguments' behaves like a keyword in some respects. -- David-Sarah Hopwood ⚥ _______________________________________________ Es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

