Open Bug 1121727 Opened 10 years ago Updated 2 years ago

Remove non-standard Iterator usage: for loops

Categories

(MailNews Core :: Backend, task)

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: aryx, Assigned: aryx, NeedInfo)

References

Details

Attachments

(2 files)

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
Attached patch unit tests, v2 (deleted) — Splinter Review
Attachment #8549239 - Flags: review?(mkmelin+mozilla)
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+
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?
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)

Aryx?

Type: defect → task
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: