brendan at mozilla.com
Wed Aug 17 16:15:25 PDT 2011
On Aug 17, 2011, at 12:04 PM, Mike Samuel wrote:
>> In SpiderMonkey implementation (built into Firefox, Thunderbird), up to version 1.7, it is possible to pass a calling context as a second argument for eval function.
> This violated closures in abominable ways, but it could be made to
> respect closures.
That was fixed a while ago:
(more fun in followup bug).
> If that second argument were explicitly null, then using an object
> containing only the builtins as defined at interpreter start, would
> get these semantics.
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.
More information about the es-discuss