Assume the following program:
var C = function() { };
x = new C();
The expression x instanceof C yields True, so x has to know somehow that it was constructed by the function C. Is there way to retrieve the name C directly from x?
(In my problem at hand, I have a hierarchy of prototypes implementing possible signals in my application. I have to access the type of a signal which shall be equivalent to the constructor used to create that signal.)