Comment #10 on issue 1645 by [email protected]: parseInt still parsing
octal
http://code.google.com/p/v8/issues/detail?id=1645
Now that you mention it... when I add the following line to the document's
<head>:
<meta http-equiv="X-UA-Compatible" content="IE=9">
then suddenly parseInt("010") returns 10. I have no idea how widespread
that header is among websites in the wild.
FWIW, I personally think that using a leading zero to mark numbers as octal
is a pretty misleading convention, and would love to get rid of it.
However, given that all browsers (except for IE in "standards mode") agree
on the old way of doing things, I agree with the conclusion that V8
shouldn't change its behavior at this time.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev