Closed Bug 1059687 Opened 10 years ago Closed 10 years ago

Webapps.jsm:3552 - test for equality (==) mistyped as assignment (=)?

Categories

(Core Graveyard :: DOM: Apps, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla34

People

(Reporter: MatsPalmgren_bugz, Assigned: myk)

Details

Attachments

(1 file)

STR
Using a local debug Firefox build on Linux64:
./mach mochitest-plain content/html/content/test/

ACTUAL RESULT
In the log output:
INFO System JS : WARNING resource://gre/modules/Webapps.jsm:3552 - test for equality (==) mistyped as assignment (=)?
Can paste the part around this line from your $OBJDIR/dist/bin/modules/Webapps.jsm ? This file has a bunch of preprocessing and I only have b2g builds around.
Presumably it's this one.
Assignee: nobody → myk
Status: NEW → ASSIGNED
Attachment #8480605 - Flags: review?(fabrice)
right. Ted?
Flags: needinfo?(tclancy)
myk's patch fixed it in my local build -- the affected line is 3706, so the warning
is just slightly off :-/
I can confirm that the relevant line is intentionally an assignment, and not an equality test mistyped as an assignment. 

The compiler is merely trying to besmirch my reputation.

myk's patch looks good.
Flags: needinfo?(tclancy)
Attachment #8480605 - Flags: review?(fabrice) → review+
https://hg.mozilla.org/mozilla-central/rev/7a6e3931a0f1
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: