Is ES5 Strict a fully statically scoped language?

Gavin Barraclough barraclough at apple.com
Wed Oct 3 11:53:04 PDT 2012


On Oct 3, 2012, at 10:05 AM, François REMY wrote:

>  In non-strict ES, the “t” function may be eval, and eval could add a “oops” variable in the parent function getOoops.

I don't believe this is true.  This does not constitute a direct call to eval (15.1.2.1.1), and as such the eval will take place in a fresh execution context, rather than the calling function's context.

cheers,
G.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121003/26074f36/attachment.html>


More information about the es-discuss mailing list