Clean scope

Juriy Zaytsev kangax at
Wed Aug 17 09:14:19 PDT 2011

What do you mean by "clean scope"? All scope chains have at least global
scope in them. Is that what "clean scope" chain would be — the one including
global scope only? That's pretty much what `Function` constructor does.


On Wed, Aug 17, 2011 at 11:50 AM, John J Barton <johnjbarton at
> wrote:

> JavaScript's ability to close over variables in nesting scopes
> sometimes surprises me. I'd like to be able to say "function uses a
> clean scope". Is there something like this in the works? Or maybe it
> exists?
> Thanks,
> jjb
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list