arguments.callee and strict mode

Douglas Crockford douglas at
Tue Mar 10 09:29:17 PDT 2009

> It occurs to me, that using arguments.callee is the only way  
> to express recursion within a function created using the Function 
> constructor and that use of the Function constructor (rather than 
> eval) should probably be encouraged for dynamically constructing 
> functions from source code.

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.

More information about the Es-discuss mailing list