How can I access a function name from inside that function?
// parasitic inheritance var ns.parent.child = function() { var parent = new ns.parent(); p
If I understood what you wanted to do, this is what I do inside a function constructor.
if (!(this instanceof arguments.callee)) { throw "ReferenceError: " + arguments.callee.name + " is not defined"; }