Closed Bug 1769029 Opened 3 years ago Closed 3 years ago

Support ESM loaded by shim in loadedModules

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

Cu.loadedModules returns a list of URI of loaded JSMs

The problem with loadedModules is that, we don't track whether the ESM is loaded by shim or not,
so, possible options are:

  • (a) add extra flag to ModuleScript for "loaded by shim" and return flagged modules, mapping to .jsm URL
  • (b) add extra map/set for "ESM loaded by shim"
  • (c) just return all ESMs, mapping to .jsm URL

the patch takes (c)

Assignee: nobody → arai.unmht
Attachment #9276234 - Attachment description: WIP: Bug 1769029 - Support ESM loaded by shim in Cu.loadedModules. r?yulia! → Bug 1769029 - Support ESM loaded by shim in Cu.loadedModules. r?yulia!
Status: NEW → ASSIGNED
Summary: Support ESM loaded by shim in loadedModules? → Support ESM loaded by shim in loadedModules
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/da102935dfd2 Support ESM loaded by shim in Cu.loadedModules. r=yulia

Backed out for causing spidermonkey failures on Modules.cpp

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/js/src/vm/Modules.cpp:237:10: error: cannot initialize return object of type 'JSObject *' with an rvalue of type 'js::ModuleEnvironmentObject *'
Flags: needinfo?(arai.unmht)
Flags: needinfo?(arai.unmht)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/7c35723786c0 Support ESM loaded by shim in Cu.loadedModules. r=yulia
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: