Closed
Bug 1068075
Opened 11 years ago
Closed 11 years ago
Fix failure caused by [TypeError: redeclaration of variable ...]
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.7
People
(Reporter: ssitter, Assigned: ssitter)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
15.61 KB,
patch
|
Fallen
:
review+
Fallen
:
checkin+
|
Details | Diff | Splinter Review |
1.93 KB,
patch
|
Fallen
:
review+
Fallen
:
checkin+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•11 years ago
|
||
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
Assignee | ||
Comment 2•11 years ago
|
||
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)
Assignee | ||
Comment 3•11 years ago
|
||
fix some error locations
Attachment #8490152 -
Attachment is obsolete: true
Attachment #8490152 -
Flags: review?(philipp)
Attachment #8490270 -
Flags: review?(philipp)
Comment 4•11 years ago
|
||
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+
Assignee | ||
Comment 5•11 years ago
|
||
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
Comment 6•11 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/e2d2b3848901>
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.7
Updated•11 years ago
|
Assignee: nobody → ssitter
Keywords: checkin-needed → APIchange
![]() |
||
Comment 7•11 years ago
|
||
Attachment #8490394 -
Flags: review?(philipp)
Updated•11 years ago
|
Attachment #8490394 -
Flags: review?(philipp) → review+
Comment 8•11 years ago
|
||
Comment on attachment 8490394 [details] [diff] [review]
additional fixups, v1
https://hg.mozilla.org/comm-central/rev/76a498138f36
Attachment #8490394 -
Flags: checkin+
Updated•11 years ago
|
Attachment #8490270 -
Flags: checkin+
Updated•11 years ago
|
Blocks: 1001090
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•