arguments.callee and strict mode

Allen Wirfs-Brock Allen.Wirfs-Brock at microsoft.com
Tue Mar 10 09:38:31 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. 


More information about the Es-discuss mailing list