You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: slides/2026-05-update.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,21 +130,21 @@ would depend on the provider of `ScopeCeiling` adding them.
130
130
131
131
1. Is `NewModuleEnvironment` a spec fiction? Can we verify that `ModuleEnvironmentRecord` points to its `OuterEnv` explicitly as opposed to it being looked up by default in the end?
132
132
133
-
- This [area in Firefox](https://searchfox.org/firefox-main/source/js/src/builtin/ModuleObject.cpp#1598) seems related and [this line](https://searchfox.org/firefox-main/source/js/src/vm/EnvironmentObject.cpp#408) looks like a match for spec setting `OuterEnv`
134
-
- This [line in V8](https://github.com/v8/v8/blob/main/src/heap/factory.cc#L1709) mentions `outer` in the context of `ModuleContext` - might be related
133
+
- This [area in Firefox](https://searchfox.org/firefox-main/rev/ada2ab816a8c8cdf48c1ccf2111ec74eaff4c7cb/js/src/builtin/ModuleObject.cpp#1576) seems related and [this line](https://searchfox.org/firefox-main/rev/0a95d145f781bc57ef4183545cbb88e35d27b66d/js/src/vm/EnvironmentObject.cpp#388) looks like a match for spec setting `OuterEnv`
134
+
- This [line in V8](https://github.com/v8/v8/blob/c3e9684c91b3d706fc22f2fb5b7ede5d62ad6da9/src/heap/factory.cc#L1715) mentions `outer` in the context of `ModuleContext` - might be related
135
135
136
136
---
137
137
138
138
## Open questions
139
139
140
140
2.`ScopeCeiling` needs means to be associated with a module.
141
141
142
+
- The Compartment proposal would define a common `ScopeCeiling` for all modules loaded in a `Compartment`
143
+
142
144
- We are open to exploring exposing it independently of Compartment, as some of the motivating usec-ases (e.g. DSLs) do not require an importHook to also be present.
143
145
- Is `import('specifier', { scope: {} })` an option?
144
146
- An entity encapsulating a pair: `ModuleSource`, `ScopeCeiling` and also be acceptable as input whereever ModuleSource is?
145
-
- Open to fedback and suggestions.
146
147
147
-
- Regardless, the Compartment proposal would define a common `ScopeCeiling` for all modules loaded in a `Compartment`
148
148
149
149
- If we don't find a useful way to surface `ScopeCeiling` on its own, we will fold this proposal into refreshed Compartment proposal.
0 commit comments