Is ES5 Strict a fully statically scoped language?

Gavin Barraclough barraclough at
Wed Oct 3 12:56:44 PDT 2012

On Oct 3, 2012, at 12:40 PM, François REMY wrote:

> Indirect eval is something introduced for ES5 Strict only, I believe.

Nope.  See, no reference to strict.

Here's a better example:
	(function(t){ var x = 'foo'; t("x = 'bar'"); alert(x); })(eval)
The indirect eval does not modify the function's local variable.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list