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
Editorial: Lazily compute the list of [[Exports]] of a module namespace
A goal of the proposal is that implementations can, under some circumstances,
easily implement lazy loading of deferred modules (when they know that they
don't have syntax errors or transitive async dependencies).
While trying to actually implement an example of that, I found a problem: even though
it's not user-exposed, the spec eagerly reads the list of exports in GetModuleNamespace.
It requires some non-trivial changes to actually do it lazily, and this PR does it directly
in the spec so that implementations are not forced to diverge.
Collection of the list of exports in a module (for the module namespace) is now centralized
in GetModuleExportsList, including removal of the `"then"` key for deferred namespaces.
0 commit comments