Closed Bug 1325373 Opened 7 years ago Closed 7 years ago

Handle the [...].forEach((...) => XPCOMUtils.defineLazyModuleGetter(...)) form of getters when detecting globals

Categories

(Developer Infrastructure :: Lint and Formatting, defect, P2)

3 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1388215

People

(Reporter: standard8, Unassigned)

Details

Currently, our import rules don't handle this form of import:

[
  ["AboutHome", "resource:///modules/AboutHome.jsm"],
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));

There's a couple of places we use this currently - in browser.js and nsBrowserGlue.js. It would make our lives simpler if we could get the rules handling the globals to detect these.
Priority: -- → P2
Thanks to Kit, this has been fixed in bug 1388215 :-)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Testing → Firefox Build System
Version: Version 3 → 3 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.