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
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,14 +129,25 @@ would depend on the provider of `ScopeCeiling` adding them.
129
129
130
130
## Open questions
131
131
132
-
- 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
+
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?
133
133
134
134
- 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`
135
135
- 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
136
136
137
-
- Depends on an umbrella proposal to have an entrypoint to defining a ScopeCeiling, so likely will be folded into a Compartment proposal or its subset.
137
+
---
138
138
139
+
## Open questions
140
+
141
+
2.`ScopeCeiling` needs means to be associated with a module.
142
+
143
+
- 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.
144
+
- Is `import('specifier', { scope: {} })` an option?
145
+
- An entity encapsulating a pair: `ModuleSource`, `ScopeCeiling` and also be acceptable as input whereever ModuleSource is?
146
+
- Open to fedback and suggestions.
147
+
148
+
- Regardless, the Compartment proposal would define a common `ScopeCeiling` for all modules loaded in a `Compartment`
139
149
150
+
- 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