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

Dmitry Soshnikov dmitry.soshnikov at gmail.com
Sat Aug 27 15:49:00 PDT 2011


On Sun, Aug 28, 2011 at 2:06 AM, Oliver Hunt <oliver at apple.com> 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?
>
>
Yes, however I described the sample behavior as by the spec. Per ES5 spec,
definetely it was a *monky's bug.

Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110828/5aee0dfa/attachment.html>


More information about the es-discuss mailing list