Skip to content

Commit

Permalink
fixup! Editorial: stop using strings for special values (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 8, 2020
1 parent dda632e commit 158950a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions spec.html
Expand Up @@ -23347,10 +23347,10 @@ <h1>Source Text Module Records</h1>
[[ImportName]]
</td>
<td>
String
String | ~*~
</td>
<td>
The name under which the desired binding is exported by the module identified by [[ModuleRequest]]. The value *"\*"* indicates that the import request is for the target module's namespace object.
The name under which the desired binding is exported by the module identified by [[ModuleRequest]]. The value ~*~ indicates that the import request is for the target module's namespace object.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -23408,7 +23408,7 @@ <h1>Source Text Module Records</h1>
*"mod"*
</td>
<td>
*"\*"*
~*~
</td>
<td>
*"ns"*
Expand Down Expand Up @@ -23496,10 +23496,10 @@ <h1>Source Text Module Records</h1>
[[ImportName]]
</td>
<td>
String | null
String | null | ~*~
</td>
<td>
The name under which the desired binding is exported by the module identified by [[ModuleRequest]]. *null* if the |ExportDeclaration| does not have a |ModuleSpecifier|. *"\*"* indicates that the export request is for all exported bindings.
The name under which the desired binding is exported by the module identified by [[ModuleRequest]]. *null* if the |ExportDeclaration| does not have a |ModuleSpecifier|. ~*~ indicates that the export request is for all exported bindings.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -23685,7 +23685,7 @@ <h1>Source Text Module Records</h1>
*"mod"*
</td>
<td>
*"\*"*
~*~
</td>
<td>
*null*
Expand All @@ -23702,7 +23702,7 @@ <h1>Source Text Module Records</h1>
*"mod"*
</td>
<td>
*"\*"*
~*~
</td>
<td>
*null*
Expand Down Expand Up @@ -23734,13 +23734,13 @@ <h1>ParseModule ( _sourceText_, _realm_, _hostDefined_ )</h1>
1. Append _ee_ to _localExportEntries_.
1. Else,
1. Let _ie_ be the element of _importEntries_ whose [[LocalName]] is the same as _ee_.[[LocalName]].
1. If _ie_.[[ImportName]] is *"\*"*, then
1. If _ie_.[[ImportName]] is ~*~ then
1. NOTE: This is a re-export of an imported module namespace object.
1. Append _ee_ to _localExportEntries_.
1. Else,
1. NOTE: This is a re-export of a single name.
1. Append the ExportEntry Record { [[ModuleRequest]]: _ie_.[[ModuleRequest]], [[ImportName]]: _ie_.[[ImportName]], [[LocalName]]: *null*, [[ExportName]]: _ee_.[[ExportName]] } to _indirectExportEntries_.
1. Else if _ee_.[[ImportName]] is *"\*"* and _ee_.[[ExportName]] is *null*, then
1. Else if _ee_.[[ImportName]] is ~*~ and _ee_.[[ExportName]] is *null*, then
1. Append _ee_ to _starExportEntries_.
1. Else,
1. Append _ee_ to _indirectExportEntries_.
Expand Down Expand Up @@ -23807,7 +23807,7 @@ <h1>ResolveExport ( _exportName_ [ , _resolveSet_ ] ) Concrete Method</h1>
1. For each ExportEntry Record _e_ of _module_.[[IndirectExportEntries]], do
1. If SameValue(_exportName_, _e_.[[ExportName]]) is *true*, then
1. Let _importedModule_ be ? HostResolveImportedModule(_module_, _e_.[[ModuleRequest]]).
1. If _e_.[[ImportName]] is *"\*"*, then
1. If _e_.[[ImportName]] is ~*~ then
1. Assert: _module_ does not provide the direct binding for this export.
1. Return ResolvedBinding Record { [[Module]]: _importedModule_, [[BindingName]]: ~namespace~ }.
1. Else,
Expand Down Expand Up @@ -23851,7 +23851,7 @@ <h1>InitializeEnvironment ( ) Concrete Method</h1>
1. For each ImportEntry Record _in_ of _module_.[[ImportEntries]], do
1. Let _importedModule_ be ! HostResolveImportedModule(_module_, _in_.[[ModuleRequest]]).
1. NOTE: The above call cannot fail because imported module requests are a subset of _module_.[[RequestedModules]], and these have been resolved earlier in this algorithm.
1. If _in_.[[ImportName]] is *"\*"*, then
1. If _in_.[[ImportName]] is ~*~ then
1. Let _namespace_ be ? GetModuleNamespace(_importedModule_).
1. Perform ! _env_.CreateImmutableBinding(_in_.[[LocalName]], *true*).
1. Call _env_.InitializeBinding(_in_.[[LocalName]], _namespace_).
Expand Down Expand Up @@ -24186,7 +24186,7 @@ <h1>Static Semantics: ImportEntriesForModule</h1>
<emu-grammar>NameSpaceImport : `*` `as` ImportedBinding</emu-grammar>
<emu-alg>
1. Let _localName_ be the StringValue of |ImportedBinding|.
1. Let _entry_ be the ImportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: *"\*"*, [[LocalName]]: _localName_ }.
1. Let _entry_ be the ImportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: ~*~ [[LocalName]]: _localName_ }.
1. Return a new List containing _entry_.
</emu-alg>
<emu-grammar>NamedImports : `{` `}`</emu-grammar>
Expand Down Expand Up @@ -24474,13 +24474,13 @@ <h1>Static Semantics: ExportEntriesForModule</h1>
<p>With parameter _module_.</p>
<emu-grammar>ExportFromClause : `*`</emu-grammar>
<emu-alg>
1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: *"\*"*, [[LocalName]]: *null*, [[ExportName]]: *null* }.
1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: ~*~ [[LocalName]]: *null*, [[ExportName]]: *null* }.
1. Return a new List containing _entry_.
</emu-alg>
<emu-grammar>ExportFromClause : `*` `as` IdentifierName</emu-grammar>
<emu-alg>
1. Let _exportName_ be the StringValue of |IdentifierName|.
1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: *"\*"*, [[LocalName]]: *null*, [[ExportName]]: _exportName_ }.
1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: _module_, [[ImportName]]: ~*~ [[LocalName]]: *null*, [[ExportName]]: _exportName_ }.
1. Return a new List containing _entry_.
</emu-alg>
<emu-grammar>NamedExports : `{` `}`</emu-grammar>
Expand Down

0 comments on commit 158950a

Please sign in to comment.