Closed Bug 823117 Opened 13 years ago Closed 13 years ago

Fix strict warning in WifiWorker.js

Categories

(Firefox OS Graveyard :: Wifi, defect)

x86_64
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

Attachments

(1 file)

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.
Attachment #693937 - Flags: review?(vchang)
Assignee: nobody → mrbkap
Attachment #693937 - Flags: review?(vchang) → review+
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?
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).
No, there's no effect positive or negative for the user.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: