On Wed, Aug 17, 2011 at 11:30 AM, Allen Wirfs-Brock
<[email protected]>wrote:

>
> On Aug 17, 2011, at 10:37 AM, Rick Waldron wrote:
>
>
>
> On Wed, Aug 17, 2011 at 12:36 PM, Allen Wirfs-Brock <[email protected]
> > wrote:
>
>>
>> On Aug 17, 2011, at 9:14 AM, Juriy Zaytsev wrote:
>>
>> > What do you mean by "clean scope"? All scope chains have at least global
>> scope in them. Is that what "clean scope" chain would be — the one including
>> global scope only? That's pretty much what `Function` constructor does.
>>
>> or
>>  (null,eval)("function() { /*...*/ }");
>>
>
> This actually produces...
>
> syntax error, unexpected token
>
>
> works for me in FF6
>

According to ES5.1, the argument to eval is parsed as a Program. So there's
no reason to expect the above to work. Try

   (null,eval)("(function() { /*...*/ })");

instead.


-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to