{ "id": "121408", "key": "TIMOB-15564", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-09-02T05:39:50.000+0000", "created": "2013-10-20T05:24:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:42:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nThe 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. \r\n\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project\r\n2. Paste this to app.js: \r\n{code}\r\nalert(parseInt(\"09\"));\r\n{code}\r\n3. Check the alert, should be 9, but you get 0. \r\n\r\nh4. Extra info\r\nThe workaround is clear: alert(parseInt(\"09\",10)); would do the work. \r\n", "attachment": [], "flagged": false, "summary": "parseInt('09') returns 0 instead of 9 like a browser would", "creator": { "name": "dspells", "key": "dspells", "displayName": "Henry David Spells III", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "dspells", "key": "dspells", "displayName": "Henry David Spells III", "active": true, "timeZone": "America/Chicago" }, "environment": "Mobile SDK 3.1.3\r\niOS 7", "comment": { "comments": [ { "id": "395168", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I cannot reproduce using Titanium SDK master (6.1.0).", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-02T05:39:50.000+0000", "updated": "2016-09-02T05:39:50.000+0000" }, { "id": "415699", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Cannot Reproduce with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:42:45.000+0000", "updated": "2017-03-24T18:42:45.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }