arguments.callee and strict mode

Allen Wirfs-Brock Allen.Wirfs-Brock at microsoft.com
Tue Mar 10 08:52:03 PDT 2009


In reviewing the spec. I was reminded that arguments.callee is disabled within strict mode functions.  Do you recall why you wanted to do this, other than general dislike of arguments.  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.

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20090310/50555cfc/attachment.html>


More information about the Es-discuss mailing list