Closed Bug 1779347 Opened 2 years ago Closed 2 years ago

Support ESM in Cu.getModuleImportStack

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Cu.getModuleImportStack is used in tests that monitors JSM loading, while reporting error when unexpected module is loaded.
https://searchfox.org/mozilla-central/search?q=getModuleImportStack&path=

Supporting ESM there will help investigating issue.

Replaced ModuleEntry.importStack field with mozJSModuleLoader.mImportStacks map,
to collect the import stack both for JSM and ESM when it's enabled.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/b016525e964a
Support ESM in Cu.getModuleImportStack. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: