The lexical_scope strawman looks very good. So, it's possible that: eval.hermetic = "use strict" + "use lexical scope" (which maybe subsumed by "use strict") + top-level 'this' set to something which isn't the global object. Or removed (for eval.hermetic).
Maybe eval.hermetic could 'pioneer' taking global off the scope chain via an implicit "use lexical scope" (plus "use strict"). If eval.hermetic takes as a second parameter a 'global' object it could be used to configure the top-level lexical frame - whose bindings are implicity frozen. If no 'global' object is passed - then standard environment primordials are assumed (which may be frozen or at least sandboxed). (For some reason i thought the lexical_scope proposal was about turning 'vars' into 'lets'. doh).
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

