Hi guys,

It seems that converting a negative hexadecimal string to a number, using
the unary + operator, has broken in Node 0.9.

Node 0.4, 0.6, and 0.8:

> +'-0xC8'
-200

Node 0.9:

> +'-0xC8'
NaN

Converting positive hexadecimal strings like this continues to work
properly.

Chrome stable also behaves like this (returning NaN for negative strings),
so I'm guessing this is a V8 issue, but just wanted to share it here too in
case this is known. Is this a by-design change?

Thanks much!

Aseem

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en



Reply via email to