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
A List containing the String values of the exported names exposed as own properties of this object. The list is ordered as if an Array of those String values had been sorted using `Array.prototype.sort` using *undefined* as _comparefn_.
8451
8451
</td>
8452
8452
</tr>
8453
-
<tr>
8454
-
<td>
8455
-
[[HostDefined]]
8456
-
</td>
8457
-
<td>
8458
-
Any, default value is *undefined*.
8459
-
</td>
8460
-
<td>
8461
-
Field reserved for use by host environments that need to associate additional information with a Module Namespace Exotic Object.
1. Let _sortedExports_ be a new List containing the same values as the list _exports_ where the values are ordered as if an Array of the same values had been sorted using `Array.prototype.sort` using *undefined* as _comparefn_.
8619
8608
1. Set _M_.[[Exports]] to _sortedExports_.
8620
-
1. Set _M_.[[HostDefined]] to *undefined*.
8621
8609
1. Create own properties of _M_ corresponding to the definitions in <emu-xref href="#sec-module-namespace-objects"></emu-xref>.
1. For each ExportEntry Record _e_ in _module_.[[StarExportEntries]], do
22050
22037
1. Let _requestedModule_ be ? HostResolveImportedModule(_module_, _e_.[[ModuleRequest]]).
22051
-
1. Let _starNames_ be ? _requestedModule_.GetExportedNames(_exportStarSet_, _nsModule_).
22038
+
1. Let _starNames_ be ? _requestedModule_.GetExportedNames(_exportStarSet_).
22052
22039
1. If _starNames_ is *null*, then
22053
-
1. Return *null*.
22040
+
1. Return *null*.
22054
22041
1. For each element _n_ of _starNames_, do
22055
22042
1. If SameValue(_n_, `"default"`) is *false*, then
22056
22043
1. If _n_ is not an element of _exportedNames_, then
22057
22044
1. Append _n_ to _exportedNames_.
22058
22045
1. Return _exportedNames_.
22059
22046
</emu-alg>
22060
22047
<emu-note>
22061
-
<p>GetExportedNames does not filter out or throw an exception for names that have ambiguous star export bindings.</p>
22048
+
<p>GetExportedNames does not filter out or throw an exception for names that have ambiguous star export bindings. It also doesn't throw for modules that star export from non-source text Module Records with deferred bindings.</p>
<p>A *null* return from GetExportedNames indicates a non-source text Module Record with deferred exports. Star exports from these modules are not supported and throw a Syntax Error.</p>
0 commit comments