I have created a function dynamically via Function constructor. Now I want to get the name of the function within itself. How can this be possible?
var myFunc = new Function("arg", "// want the name here")
I can call the function using myFunc(arg)
but the name does not gets printed using arguments.callee.name
Update: Is there any way to get the reference atleast i.e. something like
myFunc instanceof <something>...