On Dec 14, 2:02 am, Vyacheslav Egorov <[email protected]> wrote:
> Hi Jeremy,
>
> There is no integer type in JavaScript.
>
> There is Number type which is defined to be double precision
> floating-point number.
>
> ECMA-262 defined ToInteger(x) operation in section 9.2: roughly it is
> just sign(x) * floor(abs(x)) plus several special cases for NaN, -0,
> and infinities.
>
> Integer type in V8 API should be treated as a convenient way of
> representing and accessing result of this operation. It does not
> extend underlying JavaScript type system, it just wraps value of
> Number type.
>

Thanks for your reply.  Does v8 internally promote the int32 to a
double during Integer::New()? What about Int32?  I tried to look this
up in the source but I can't make heads or tails of it (or maybe I'm
looking in the wrong place).

Jeremy

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to