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. NOTE: When exporting a binding or namespace object which was originally imported from another module, the ExportEntry Record is rewritten to match the form it would have if the binding or namespace object had been re-exported directly from the original module rather than imported then exported. This allows conflicts which arise from exporting the same binding or namespace twice under the same name through `export * from` to be ignored rather than being treated as ambiguous in step <emu-xref href="#step-resolveexport-conflict"></emu-xref> of <emu-xref href="#sec-resolveexport">the ResolveExport concrete method of Source Text Module Records</emu-xref>.
1553
1553
1. Let _ie_ be the element of _importEntries_ whose [[LocalName]] is _ee_.[[LocalName]].
1554
-
1. If _ie_.[[ImportName]] is ~namespace-object~, then
1554
+
1. If _ie_.[[ImportName]] is ~namespace~, then
1555
1555
1. NOTE: This is a re-export of an imported module namespace object.
1556
-
1. Append the ExportEntry Record { [[ModuleRequest]]: _ie_.[[ModuleRequest]], [[ImportName]]: ~all~, [[LocalName]]: *null*, [[ExportName]]: _ee_.[[ExportName]] } to _indirectExportEntries_.
1556
+
1. Append the ExportEntry Record { [[ModuleRequest]]: _ie_.[[ModuleRequest]], [[ImportName]]: ~namespace~, [[LocalName]]: *null*, [[ExportName]]: _ee_.[[ExportName]] } to _indirectExportEntries_.
1557
1557
1. Else,
1558
1558
1. NOTE: This is a re-export of a single name.
1559
1559
1. Append the ExportEntry Record { [[ModuleRequest]]: _ie_.[[ModuleRequest]], [[ImportName]]: _ie_.[[ImportName]], [[LocalName]]: *null*, [[ExportName]]: _ee_.[[ExportName]] } to _indirectExportEntries_.
1. For each ImportEntry Record _in_ of _module_.[[ImportEntries]], do
1724
1724
1. Let _importedModule_ be GetImportedModule(_module_, _in_.[[ModuleRequest]]).
1725
-
1. If _in_.[[ImportName]] is ~namespace-object~, then
1725
+
1. If _in_.[[ImportName]] is ~namespace~, then
1726
1726
1. <ins>For each String _name_ of _importedModule_.GetExportedNames(), do</ins>
1727
1727
1. <ins>NOTE: All exports of _importedModule_ other than `export defer` ones are also validated by the InitializeEnvironment call on _importedModule_ itself, and it is not observable which of the two InitializeEnvironment calls throws the *SyntaxError*.</ins>
1728
1728
1. <ins>If _importedModule_.ResolveExport(_name_) is *null*, throw a *SyntaxError* exception.</ins>
1. If _existingRequest_ is ~empty~ and ModuleRequestsKeyEqual(_r_, _nextRequest_) is *true* and _r_.[[Phase]] is _nextRequest_.[[Phase]], then
1798
1798
1. Set _existingRequest_ to _r_.
1799
1799
1. Let _newImportedNames_ be ~all~.
1800
-
1. Assert: _oie_.[[ImportName]] is a String or ~all~.
1800
+
1. Assert: _oie_.[[ImportName]] is a String or ~namespace~.
1801
1801
1. If _oie_.[[ImportName]] is a String, set _newImportedNames_ to « _oie_.[[ImportName]] ».
1802
1802
1. If _existingRequest_ is ~empty~, then
1803
1803
1. Let _request_ be the ModuleRequest Record { [[Specifier]]: _nextRequest_.[[Specifier]], [[Attributes]]: _nextRequest_.[[Attributes]], [[Phase]]: _nextRequest_.[[Phase]], [[ImportedNames]]: _newImportedNames_ }.
0 commit comments