I have this function :
function fff(){}
Which is a function
which is an instance of Function constructor
so fff.__proto__
should show me : function Function() { [native code] }
But it doesn't.
It shows : function Empty() {}
It is only at the constructor
property of __proto__
that I see function Function() { [native code] }
Question :
What is this function Empty() {}
function
and why fff.__proto__
won't show me : function Function() { [native code] }
?
nb
I know that __proto__
is the actual object that is used in the lookup chain to resolve methods, etc. prototype
is the object that is used to build __proto__
when you create an object with new
.
But again : function fff
is a function which is instantiated behind the scenes by newing Function constructor.
...so ?