Closed
Bug 823117
Opened 13 years ago
Closed 13 years ago
Fix strict warning in WifiWorker.js
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mrbkap, Assigned: mrbkap)
Details
Attachments
(1 file)
|
1.07 KB,
patch
|
vchang
:
review+
akeybl
:
approval-mozilla-aurora-
akeybl
:
approval-mozilla-b2g18-
|
Details | Diff | Splinter Review |
I noticed this in logcat just now:
E/GeckoConsole( 1302): [JavaScript Warning: "variable info redeclares argument" {file: "jar:file:///system/b2g/omni.ja!/components/WifiWorker.js" line: 2193 column: 12 source: " let info = { signalStrength: rssi,
and indeed info shadows a parameter. This is easy to fix and it seems worth doing so.
| Assignee | ||
Comment 1•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #693937 -
Flags: review?(vchang)
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mrbkap
Updated•13 years ago
|
Attachment #693937 -
Flags: review?(vchang) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
| Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 693937 [details] [diff] [review]
Bug 823117 - Don't shadow parameters with local variables.
[Approval Request Comment]
Extremely safe patch to avoid a strict JS warning in the wifi code.
Attachment #693937 -
Flags: approval-mozilla-b2g18?
Attachment #693937 -
Flags: approval-mozilla-aurora?
Comment 4•13 years ago
|
||
Sorry to be difficult, but does this warning have any user impact? We're at the point in the project that we need to limit code change wherever possible (regardless of the risk evaluation).
| Assignee | ||
Comment 5•13 years ago
|
||
No, there's no effect positive or negative for the user.
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Attachment #693937 -
Flags: approval-mozilla-b2g18?
Attachment #693937 -
Flags: approval-mozilla-b2g18-
Attachment #693937 -
Flags: approval-mozilla-aurora?
Attachment #693937 -
Flags: approval-mozilla-aurora-
You need to log in
before you can comment on or make changes to this bug.
Description
•