Weird, I tought Number was an instance of Function. Can you check this ?

yes, you are right.  So, Number.valueOf does make sense.

More checks here:

Number instanceof Function;                 //true
typeof(Number));                                  //function
typeof(Number.valueOf);                       //function
typeof(Number.valueOf()));                   //function
typeof(Number.__proto__.valueOf));      //function
typeof(Number.__proto__.valueOf()));    //object
typeof(Number.prototype.valueOf));       //function
typeof(Number.prototype.valueOf()));     //undefined


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to