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 <[email protected] > 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 > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

