Open
Bug 1938859
Opened 2 months ago
Updated 3 days ago
Remove JS::TransitiveCompileOptions::deoptimizeModuleGlobalVars
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
REOPENED
People
(Reporter: arai, Assigned: arai)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
The JS::TransitiveCompileOptions::deoptimizeModuleGlobalVars
was added to keep the backward compatibility of the Cu.import
behavior with the "JSM to ESM" shim, which required all the global variables being on the environment object.
// De-optimize ES module's top-level `var`s, in order to define all of them
// on the ModuleEnvironmentObject, instead of local slot.
//
// This is used for providing all global variables in Cu.import return value
// (see bug 1766761 for more details), and this is temporary solution until
// ESM-ification finishes.
//
// WARNING: This option will eventually be removed.
bool deoptimizeModuleGlobalVars = false;
Once the JSM API is removed, this option can be removed.
The last and the only consumer will be removed in bug 1881888
Updated•1 month ago
|
Severity: -- → N/A
Priority: -- → P3
Assignee | ||
Comment 1•1 month ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/e9c90fbcc514
Remove TransitiveCompileOptions.deoptimizeModuleGlobalVars. r=jonco
Comment 3•5 days ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Comment 4•3 days ago
•
|
||
Backed out as requested by arai for causing Bug 1946592.
Status: RESOLVED → REOPENED
status-firefox137:
fixed → ---
Resolution: FIXED → ---
Target Milestone: 137 Branch → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•