[TIMOB-15564] parseInt('09') returns 0 instead of 9 like a browser would
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Low | 
| Status | Closed | 
| Resolution | Cannot Reproduce | 
| Resolution Date | 2016-09-02T05:39:50.000+0000 | 
| Affected Version/s | Release 3.1.3 | 
| Fix Version/s | n/a | 
| Components | iOS | 
| Labels | SupportTeam | 
| Reporter | Henry David Spells III | 
| Assignee | Eric Merriman | 
| Created | 2013-10-20T05:24:11.000+0000 | 
| Updated | 2017-03-24T18:42:45.000+0000 | 
Description
Problem Description
The user tries to do a parseInt with a format similar to the one will work in current Firefox or Chrome. We are interpreting the value as octal, instead of decimal as modern browsers do.Steps to reproduce
1. Create a new mobile project 2. Paste this to app.js:
alert(parseInt("09"));
I cannot reproduce using Titanium SDK master (6.1.0).
Closing ticket as Cannot Reproduce with reference to the above comments.