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

John-David Dalton john.david.dalton at gmail.com
Sat Aug 27 15:15:49 PDT 2011


@Oliver Hunt

> I have a vague recollection that *monkey treats <global object>.eval(..) as
> a direct eval?

Firefox < 4 will execute `window.eval(….)` as in the global execution
context but will still allow access to variables that are accessible
from the execution context of where `window.eval` was called.
You can see this in the jQuery bug I mentioned here:
https://twitter.com/#!/jdalton/status/70778564617838592

- JDD


More information about the es-discuss mailing list