Re: double checking if window.eval(…) is an indirect call to eval().

Brendan Eich brendan at
Mon Aug 29 15:53:20 PDT 2011

On Aug 27, 2011, at 3:06 PM, Oliver Hunt wrote:

> On Aug 27, 2011, at 2:42 PM, Dmitry Soshnikov wrote:
>> On Sat, Aug 27, 2011 at 11:53 PM, John-David Dalton <john.david.dalton at> wrote:
>> > No. It's the global object what is the base (more precisely, its DOM's proxy wrapper -- `window` or either the global itself), but not an environment record.
>> So basically the only kind of MemberExpression allowed is a PrimaryExpression?
>> If it will be easier for you to remember (and what is actually is written in the reference I gave), _only_ `eval` call written in the following syntactic form is direct:
>> eval(...)
>> Only. _All_ the other cases are indirect.
> I have a vague recollection that *monkey treats <global object>.eval(..) as a direct eval?

Fixed a while ago:

Firefox 4 and up.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list