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

Brendan Eich brendan at mozilla.com
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 gmail.com> 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:

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

Firefox 4 and up.

/be

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110829/b1baff80/attachment.html>


More information about the es-discuss mailing list