Closed Bug 1068075 Opened 11 years ago Closed 11 years ago

Fix failure caused by [TypeError: redeclaration of variable ...]

Categories

(Calendar :: General, defect)

Lightning 3.7
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Bug 1001090 enabled some strict checking for let declarations. This causes some Lightning tests to fail. There might be more failures in Lightning itself. From https://tbpl.mozilla.org/php/getParsedLog.php?id=48189216&tree=Thunderbird-Trunk: > INFO - Diagnostic: TypeError: redeclaration of variable comp at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_alarm.js:519 > INFO - Diagnostic: TypeError: redeclaration of variable parser at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_ics_parser.js:54 > INFO - Diagnostic: TypeError: redeclaration of variable occ at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_recur.js:417 > INFO - Diagnostic: TypeError: redeclaration of variable a at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_utils.js:63 > INFO - Diagnostic: TypeError: redeclaration of variable prop at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_calmgr.js:219 > INFO - Diagnostic: TypeError: redeclaration of variable refDate at resource://calendar/modules/calExtract.jsm:1141 > WARNING - TEST-UNEXPECTED-FAIL | C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_extract.js | TypeError: extractor is undefined at C:/slave/test/build/tests/xpcshell/tests/calendar/test/unit/test_extract.js:26
From https://tbpl.mozilla.org/php/getParsedLog.php?id=48188878&tree=Thunderbird-Trunk: > JavaScript error: chrome://calendar/content/calendar-multiday-view.xml, line 1606: TypeError: redeclaration of variable lateralColumns > JavaScript error: chrome://calendar/content/calendar-multiday-view.xml, line 3312: TypeError: redeclaration of let d > JavaScript error: chrome://calendar/content/calendar-task-tree.xml, line 150: TypeError: redeclaration of variable tree > JavaScript error: chrome://calendar/content/calendar-views.js, line 309: TypeError: redeclaration of variable view
Attached patch fix errors reported in comment 0 (obsolete) β€” β€” Splinter Review
This should fix the errors reported in comment 0. I did not get xpcshell-tests running in local build therefore you might want to test before commit.
Attachment #8490152 - Flags: review?(philipp)
Attached patch fix errors β€” β€” Splinter Review
fix some error locations
Attachment #8490152 - Attachment is obsolete: true
Attachment #8490152 - Flags: review?(philipp)
Attachment #8490270 - Flags: review?(philipp)
Comment on attachment 8490270 [details] [diff] [review] fix errors Review of attachment 8490270 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch and finding all the error locations! I have my fingers crossed that this covers everything!
Attachment #8490270 - Flags: review?(philipp) → review+
There might be more error locations. The patch fixes only the ones reported during unit test execution and a few reported when running Lightning and creating an event.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.7
Assignee: nobody → ssitter
Attachment #8490394 - Flags: review?(philipp) → review+
Blocks: 1001090
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: