Possible Duplicate:
Why was the arguments.callee.caller property deprecated in JavaScript?
In ES5 strict mode (i.e. "use strict"
) the arguments.callee
variable that refers to the current function is no longer available.
For recursive functions it's obviously sensible to use the function's own name. However there are times when I might want to use properties of arguments.callee
(i.e. .length
, .prototype
) without having to use the name of the current function.
Can anyone explain what apparent problem was (allegedly) solved by removing it?