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

Oliver Hunt oliver at apple.com
Sat Aug 27 15:06:46 PDT 2011


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?

--Oliver

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


More information about the es-discuss mailing list