Open
Bug 1973206
Opened 2 days ago
Updated 2 days ago
Prevent accessing ModuleLoadRequest's mImports to do PrepareBytecodeEncoding
Categories
(Core :: JavaScript Engine, task, P2)
Core
JavaScript Engine
Tracking
()
ASSIGNED
People
(Reporter: allstars.chh, Assigned: arai)
References
(Blocks 1 open bug)
Details
In Bug 1820594, the module graph information won't be available to the host layer.
When a module script is fetched, the host will call LoadRequestedModules or FinishLoadingImportedModule, and the JS engine will iterate the requested modules and call HostLoadImportedModule accordingly.
In that case, I plan to remove the mImports member in ModuleLoadRequest.
But the mImports is iterated before/after the module evaluation.
https://searchfox.org/mozilla-central/rev/158fb9063c06a36e6a2efb2b1823bba8c01e82a1/dom/script/ScriptLoader.cpp#3226
https://searchfox.org/mozilla-central/rev/158fb9063c06a36e6a2efb2b1823bba8c01e82a1/dom/script/ScriptLoader.cpp#3240
Assignee | ||
Updated•2 days ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•