Closed Bug 1772104 Opened 4 years ago Closed 4 years ago

Use plain object for lazy getter in js/xpconnect/

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1772007 +++

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.

Attachment #9279138 - Attachment description: Bug 1772104 - Use plain object for lazy getter in js/xpconnect/loader/. r?kmag! → Bug 1772104 - Stop using lazy getter for Services.jsm in js/xpconnect/loader/. r?kmag!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/af541228734f Stop using lazy getter for Services.jsm in js/xpconnect/loader/. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: