Example: http://jsfiddle.net/yxvu9o4r/1/
Let's open the console and type:
Code: Select all
cd(result)
ref
This prints a function reference visualised as "function myFunc()" that is, indeed, its function name.
However, not "name", "displayName" nor "toSource()" of this function reference would contain the above string. Is it possible to access it from user code?