Clean scope

Juriy Zaytsev kangax at gmail.com
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.

-- 
kangax

On Wed, Aug 17, 2011 at 11:50 AM, John J Barton <johnjbarton at johnjbarton.com
> 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 mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110817/114041ab/attachment.html>


More information about the es-discuss mailing list