From 99a19f39e7f16d666ebe49e83fd7a86bab7358b2 Mon Sep 17 00:00:00 2001
From: Guy Bedford GetExportedNames ( _exportStarSet_, _starExportModule_ ) Concrete
1. For each ExportEntry Record _e_ in _module_.[[StarExportEntries]], do
1. Let _requestedModule_ be ? HostResolveImportedModule(_module_, _e_.[[ModuleRequest]]).
1. Let _starNames_ be ? _requestedModule_.GetExportedNames(_exportStarSet_, _starExportModule_).
+ 1. If _starNames_ is *null* then,
+ 1. Return *null*.
1. For each element _n_ of _starNames_, do
1. If SameValue(_n_, `"default"`) is *false*, then
1. If _n_ is not an element of _exportedNames_, then
@@ -194,6 +196,8 @@
GetExportedNames ( _exportStarSet_, _starExportModule_ ) Concrete Method
It performs the following steps:
The only way GetModuleNamespace can throw is via one of the triggered HostResolveImportedModule calls. Unresolvable names are simply excluded from the namespace at this point. They will lead to a real instantiation error later unless they are all ambiguous star exports that are not explicitly requested anywhere.
+The only way GetModuleNamespace can throw is either via one of the triggered HostResolveImportedModule calls or by attempting to resolve export names from an uninstantiated Dynamic Module Record. Unresolvable names to Source Text Modules are simply excluded from the namespace at this point. They will lead to a real instantiation error later unless they are all ambiguous star exports that are not explicitly requested anywhere.
The only way GetModuleNamespace can throw is either via one of the triggered HostResolveImportedModule calls or by attempting to resolve export names from an uninstantiated Dynamic Module Record. Unresolvable names to Source Text Modules are simply excluded from the namespace at this point. They will lead to a real instantiation error later unless they are all ambiguous star exports that are not explicitly requested anywhere.
+The only way GetModuleNamespace can throw is either via one of the triggered HostResolveImportedModule calls or by attempting to resolve export names from an uninstantiated Dynamic Module Record during a circular reference execution. Unresolvable names to Source Text Modules are simply excluded from the namespace at this point. They will lead to a real instantiation error later unless they are all ambiguous star exports that are not explicitly requested anywhere.