arguments.callee unfortunatelly deprecated, and using it throws an error in \"strict mode\".
Is there any new proper(standard) alternative for getting functi
If you use Node.js there is a useful package exactly for this problem: caller-id
var callerId = require('caller-id'); function foo() { bar(); } function bar() { var callerName = callerId.getData().functionName; /* 'foo' */ }