> 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: > > http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders > > 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. Dave _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss