There is only one way to set function name: add it into function defenitionNoQ wrote:Now for the "real" arguments.
If i dosuperFunction writes empty string to debug, but ultraFunction writes "ultraFunction".Code: Select all
_global.superFunction = function() { megaFunction(); } function ultraFunction() { megaFunction(); } function megaFunction() { debug(arguments.callee.caller.name); }
Code: Select all
_global.superFunction = function superFunction() {