block scope + direct non-strict eval

Brendan Eich brendan at
Tue Jan 31 18:17:41 PST 2012

Mark S. Miller wrote:
>     Indirect eval is always non-strict and scoped only by the global
>     scope.
>     (1,eval)(' "use strict"; let x = 8;')
> is a strict indirect eval.

Yes. I hope it was clear I meant that, absent any "use strict"; 
directive in the eval'd source, an indirect eval even from strict code 
does not inherit strictness from its caller. No dynamic scope.


More information about the es-discuss mailing list