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)

x86
macOS
defect
Not set
normal

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.
Pointer to Github pull-request
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: nobody → hub
Attachment #762156 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8490093 - Flags: review?(dkuo)
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 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+
Merged
https://github.com/mozilla-b2g/gaia/commit/506da17d0f8dce5d1731b5fc48d5b64c52f55135
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: