Closed Bug 337255 Opened 19 years ago Closed 19 years ago

parseInt: Error in parsing string "08","09"

Categories

(Toolkit Graveyard :: Error Console, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 43425

People

(Reporter: fafejta.ondrej, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 Code: x="08"; alert(parseInt(x)); // return 0. It is wrong Next examples x==01 parseInt(x)==1 x==02 parseInt(x)==2 x==03 parseInt(x)==3 x==04 parseInt(x)==4 x==05 parseInt(x)==5 x==06 parseInt(x)==6 x==07 parseInt(x)==7 x==08 parseInt(x)==0 x==09 parseInt(x)==0 Fafi Reproducible: Always
This is invalid, see for the explanation in bug 43425. *** This bug has been marked as a duplicate of 43425 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.