On this issue, I do not expect a solution to solve something, but I would like to better understand the situation.
Some quotes from the specification:
If I understood correctly, both specifications allow the following code to be executed:
function F() { } var x=Object.create(F);
It seems he created an object of the type derived from (sorry for the bad terminology ..) Function , as I tested in FireFox, and therefore x not invocable :
x(); // x is not a function
I think about why it does not prohibit the constructor to be used as O , or just create a valid constructor.
So, I wonder what you expect from Object.create with a constructor?
javascript
Ken kin
source share