Closed
Bug 882799
Opened 11 years ago
Closed 10 years ago
Gaia Music doesn't use radix parameter
Categories
(Firefox OS Graveyard :: Gaia::Music, defect)
Tracking
(b2g-v2.2 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
b2g-v2.2 | --- | fixed |
People
(Reporter: tofumatt, Assigned: hub)
Details
Attachments
(1 file, 1 obsolete file)
Although not likely to cause problems if only running on one platform (Gecko), we should always specify the radix when using a stock parseInt function for the sake of good coding practices. WebKit and Gecko, for instance, handle casting strings to numbers inside parseInt differently if the radix is not supplied. I've submitted a patch for this.
Reporter | ||
Comment 1•11 years ago
|
||
Pointer to Github pull-request
Comment 2•11 years ago
|
||
Hi tofumatt, thanks for contributing this. Actually the parseInt in utils.js is removed by the patch of bug 877313, so probably this is not an issue now. You can rebase your branch and after that you should found utils.js is already updated, thanks.
Assignee | ||
Comment 3•10 years ago
|
||
Assignee: nobody → hub
Attachment #762156 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8490093 -
Flags: review?(dkuo)
Assignee | ||
Comment 4•10 years ago
|
||
Changing title as there are a few places where we don't pass the radix, but the original one no longer.
Summary: Gaia Music Timestamp doesn't use radix parameter → Gaia Music doesn't use radix parameter
Comment 5•10 years ago
|
||
Comment on attachment 8490093 [details] [review] Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/24105 Simple fix so looks good to me, thanks Hubert!
Attachment #8490093 -
Flags: review?(dkuo) → review+
Assignee | ||
Comment 6•10 years ago
|
||
Merged https://github.com/mozilla-b2g/gaia/commit/506da17d0f8dce5d1731b5fc48d5b64c52f55135
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
status-b2g-v2.2:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•