gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog server/asobj/Number.cpp testsui...


From: Sandro Santilli
Subject: Re: [Gnash-commit] gnash ChangeLog server/asobj/Number.cpp testsui...
Date: Sun, 25 Mar 2007 15:47:59 +0200

On Fri, Mar 23, 2007 at 05:47:13PM +0800, zou lunkai wrote:
> >>check_equals(typeof(Number.valueOf()), 'function'); // this is odd
> maybe a Ming bug?

I think it makes sense looking at ECMA-262 specs:
The "primitive" value of a constructor is still a 'function'.

> typeof(Number.prototype.valueOf()) == undefined  here!

It's likely inherited from Function:

Number.__proto__.valueOf()


--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]