Community
Participate
Working Groups
Consider the following code, which produces lint warnings: > function f() { > arguments.callee; // 'arguments.callee' is deprecated. > } > (function() { > arguments.callee; // 'arguments.callee' is deprecated. > }()); The warnings can be eliminated by replacing 'arguments.callee' with a reference to the specific function it refers to: > function f() { > f; > } > (function __func0() { > __func0; > }()); The idea being * arguments.callee always binds to the enclosing function. * When the "callee" function is anonymous, we generate a fresh (unbound) symbol and name it: __func0, __func1, ... We should provide a quick fix for this. It should work in pretty much every case, barring dynamic hax like eval and the Function() constructor.
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html