Closed
Bug 1121727
Opened 10 years ago
Closed 8 months ago
Remove non-standard Iterator usage: for loops
Categories
(MailNews Core :: Backend, task)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: aryx, Assigned: aryx)
References
Details
Attachments
(2 files)
23.52 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
7.61 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Remove the non-standard Iterator usage to allow better usage of external javascript tools like code validators, and to prevent potential bustage.
This bug is about leftover from |for| loops seen while checking for |for ... in| destructuring. DXR url:
https://dxr.mozilla.org/comm-central/search?q=regexp%3Afor\s*\%28%28var|let%29%3F\s%2B\%5B&case=true&redirect=true
Assignee | ||
Comment 1•10 years ago
|
||
Let's start with the tests. Successful Try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=03c34a3d2365
Attachment #8549238 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8549239 -
Flags: review?(mkmelin+mozilla)
Comment 3•10 years ago
|
||
Comment on attachment 8549238 [details] [diff] [review]
/mail/test, v2
Review of attachment 8549238 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM, r=mkmelin
Attachment #8549238 -
Flags: review?(mkmelin+mozilla) → review+
Updated•10 years ago
|
Attachment #8549239 -
Flags: review?(mkmelin+mozilla) → review+
Great work cleaning these up!
But I assume the changes in test-iteratorUtils.js here are bitrotted due to bug 1123117. Can you refresh the patch?
Other than that, is this ready for check in? Or are the more patches to upload?
Blocks: non-standard-js
Comment 5•7 years ago
|
||
Any news?
Iterator() was removed in m-c (bug 1098412) and we adapted c-c to no longer use it (bug 1395116). It may be the code that this patch fixes is no longer there.
As the patches didn't land 3 years ago, they need an overhaul now. Aryx?
Flags: needinfo?(aryx.bugmail)
Updated•2 years ago
|
Severity: normal → S3
Comment 8•8 months ago
|
||
Magnus is this still needed?
Flags: needinfo?(aryx.bugmail) → needinfo?(mkmelin+mozilla)
Comment 9•8 months ago
|
||
No, no longer relevant.
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Flags: needinfo?(mkmelin+mozilla)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•