eval on non-strings

Andreas Rossberg rossberg at google.com
Mon Feb 27 02:02:25 PST 2012

On 26 February 2012 19:32, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> The change can't be predicated on strict code because it concerns the definition of a built-in function that is called from any code. Strict mode restrictions must be tied to a lexical context.

We already distinguish direct eval, which is lexical, so we could make
a strict mode distinction there.

I agree it's hardly worth changing though. There are far more
hazardous places where the language opts for unhelpful "soft failure",
and it looks like we are even adding new ones.


More information about the es-discuss mailing list