Strengthening Function.prototype.toString

Maciej Stachowiak mjs at apple.com
Fri Sep 26 03:32:01 PDT 2008


On Sep 26, 2008, at 3:27 AM, Karl Krukow wrote:

>
> On 26/09/2008, at 11.13, Maciej Stachowiak wrote:
>
>>
>> I would agree with such a requirement, but only in the case where
>> the eval(f.toString()) is performed in the same scope where f was
>> originally defined, since toString does not represent the scope  
>> chain.
>
> Agreed! The classic variable capture problem ;-)

I prefer to think of it as the classic features of lexical scope and  
first-class functions.

  - Maciej



More information about the Es-discuss mailing list