arguments.callee and strict mode

Douglas Crockford douglas at crockford.com
Tue Mar 10 09:48:43 PDT 2009


>>-----Original Message-----
>>From: Douglas Crockford [mailto:douglas at crockford.com]
>>It is not the only way. You can write an annonymous function that
>>returns
>>a named, recursive function. So arguments.callee is not required for
>>that unlikely case.

>Not exactly equivalent if you are using the function constructor.  Assuming 
>that the outer anonymous function is the one that is defined using the 
>function constructor, you would have to explicitly invoke the result of the 
>constructor to obtain an instance of the inner named function. 

That's good enough. It doesn't need to be exactly equivalent.


More information about the Es-discuss mailing list