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
1. Let _resolution_ be _module_.ResolveExport(_name_).
2246
2255
1. If _resolution_ is a ResolvedBinding Record, append _name_ to _unambiguousNames_.
2247
2256
1. Set _namespace_ to ModuleNamespaceCreate(_module_, _unambiguousNames_, _phase_).
2248
-
1. <ins>If _importedNames_ is ~all~, then</ins>
2249
-
1. <ins>If _phase_ is ~defer~, then</ins>
2250
-
1. <ins>Assert: _module_.[[DeferredNamespace]] is ~empty~.</ins>
2251
-
1. <ins>Set _module_.[[DeferredNamespace]] to _namespace_.</ins>
2252
-
1. Else,
2253
-
1. <ins>Assert: _module_.[[Namespace]] is ~empty~.</ins>
2254
-
1. <ins>Set _module_.[[Namespace]] to _namespace_.</ins>
2257
+
1. <ins>Append the Record { [[Phase]]: _phase_, [[ImportedNames]]: _importedNames_, [[NamespaceObject]]: _namespace_ } to _module_.[[Namespaces]].</ins>
2255
2258
1. Return _namespace_.
2256
2259
</emu-alg>
2257
2260
<emu-note>
2258
2261
<p>GetModuleNamespace never throws. Instead, unresolvable names are simply excluded from the namespace at this point. They will lead to a real linking error later unless they are all ambiguous star exports that are not explicitly requested anywhere.</p>
2259
2262
</emu-note>
2263
+
2264
+
<p>A <dfn id="modulenamespacekey-record">ModuleNamespaceKey Record</dfn> describes which namespace object of a given module has been requested. It consists of the following fields:</p>
2265
+
<emu-table id="table-modulenamespacekey-fields" caption="ModuleNamespaceKey Record Fields">
0 commit comments