Closed Bug 1772007 Opened 3 years ago Closed 3 years ago

Use plain object for lazy getter in browser/

Categories

(Firefox :: General, task)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(4 files)

Many JSM files define lazy getters on the per-JSM global this object.
The global this object doesn't exist in ES module, and those lazy getters need to be moved to a plain object const lazy = {};, and each consumer needs to be rewritten to refer the lazy getter with lazy.foo.

This migration is done by automated script in bug 1608279.

Summary: Use plain object for lazy getter in browser/actors/ → Use plain object for lazy getter in browser/
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/b7a722b5f9cf Part 1: Use plain object for lazy getter in browser/actors/. r=mossop https://hg.mozilla.org/integration/autoland/rev/7fedadd75117 Part 2: Use plain object for lazy getter in browser/modules/. r=mossop https://hg.mozilla.org/integration/autoland/rev/e39f280dfcf2 Part 3: Use plain object for lazy getter in browser/themes/. r=desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/4d318b699cd5 Part 4: Use plain object for lazy getter in browser/tools/mozscreenshots/. r=MattN
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: