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?
From here.
arguments.callee substantially hinders optimizations like inlining functions, because it must be made possible to provide a reference to the un-inlined function if arguments.callee is accessed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With