On Wed, Dec 5, 2012 at 9:36 PM, Paul Harris <[email protected]> wrote:
> I may be wrong, but 'Infinity' is like null and Undefined - a magic > reserved word. > It is not a property of the 'Number' object, > Confirmed. There is no such property of the global Number object. Rick > > So Number.Infinity is Undefined in the same way as Number.whatever > "whatever" is not a property on Number either, so it is also Undefined. > > > On Thursday, December 6, 2012 8:41:57 AM UTC+8, Christoph Bussler wrote: >> >> Hi, >> >> as expected, typeof Infinity is 'number'. However, typeof Number.Infinity >> is 'undefined'. Why is that? >> >> typeof Number.POSITIVE_INFINITY and typeof Number.NEGATIVE_INFINITY are >> both 'number', too. So I would expect typeof Number.Infinity to be 'number' >> also. >> >> Thanks. >> >> -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
