argument.callee.name alternative in the new ECMA5 Javascript Standard [duplicate]
This question already has an answer here: Alternative to arguments.callee 2 answers I'm working on porting some old code to 'strict mode', what are the alternatives to the argument.callee and similar argument.caller etc in the ECMA5 standard? ADDED INFO: I did not specify why I need the argument.caller/callee. The code I'm porting is using assert.ok(elemNode, arguments.callee.name + ": Entity - " + entityId + " has been found"); If it were simple recursion I could use function name(){ ... function() ... }, but I can't seem to find what to do with the above code. Starting with ECMAScript 3, you