Clean scope

David Herman dherman at
Wed Aug 17 16:55:47 PDT 2011

> Mozilla has evalInSandbox built-ins. We've talked about them, but no one has produced a strawman based on this work. The module loader API:
> provides enough functionality.

In fact, I think "sandbox" is a pretty good intuition for what a loader is. And it makes sense to think of loader.eval(str) as an OO version of evalInSandbox. But it should give you much more fine-grained control over exactly how you want to set up the sandbox than just the global scope.


More information about the es-discuss mailing list