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:

https://bugzilla.mozilla.org/show_bug.cgi?id=442333

(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:

http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders

provides enough functionality.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to