diff --git a/spec.html b/spec.html index c6145398705..1846631a8b5 100644 --- a/spec.html +++ b/spec.html @@ -10019,7 +10019,7 @@

[[Get]] ( _P_, _Receiver_ )

1. Assert: _binding_ is a ResolvedBinding Record. 1. Let _targetModule_ be _binding_.[[Module]]. 1. Assert: _targetModule_ is not *undefined*. - 1. If _binding_.[[BindingName]] is *"\*namespace\*"*, then + 1. If _binding_.[[BindingName]] is ~namespace~, then 1. Return ? GetModuleNamespace(_targetModule_). 1. Let _targetEnv_ be _targetModule_.[[Environment]]. 1. If _targetEnv_ is *undefined*, throw a *ReferenceError* exception. @@ -19955,10 +19955,10 @@

Static Semantics: BoundNames

FunctionDeclaration : `function` `(` FormalParameters `)` `{` FunctionBody `}` - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ». -

*"\*default\*"* is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

+

~default~ is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

FormalParameters : [empty] @@ -20892,10 +20892,10 @@

Static Semantics: BoundNames

GeneratorDeclaration : `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ». -

*"\*default\*"* is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

+

~default~ is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

@@ -21215,10 +21215,10 @@

Static Semantics: BoundNames

AsyncGeneratorDeclaration : `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ». -

*"\*default\*"* is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

+

~default~ is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations.

@@ -21502,7 +21502,7 @@

Static Semantics: BoundNames

ClassDeclaration : `class` ClassTail - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ». @@ -21877,9 +21877,9 @@

Static Semantics: BoundNames

AsyncFunctionDeclaration : `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ». - *"\*default\*"* is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations. + ~default~ is used within this specification as a synthetic name for hoistable anonymous functions that are defined using export declarations. @@ -23443,7 +23443,7 @@

Abstract Module Records

ResolveExport(_exportName_ [, _resolveSet_]) -

Return the binding of a name exported by this module. Bindings are represented by a ResolvedBinding Record, of the form { [[Module]]: Module Record, [[BindingName]]: String }. If the export is a Module Namespace Object without a direct binding in any module, [[BindingName]] will be set to *"\*namespace\*"*. Return *null* if the name cannot be resolved, or *"ambiguous"* if multiple bindings were found.

+

Return the binding of a name exported by this module. Bindings are represented by a ResolvedBinding Record, of the form { [[Module]]: Module Record, [[BindingName]]: String }. If the export is a Module Namespace Object without a direct binding in any module, [[BindingName]] will be set to ~namespace~. Return *null* if the name cannot be resolved, or *"ambiguous"* if multiple bindings were found.

Each time this operation is called with a specific _exportName_, _resolveSet_ pair as arguments it must return the same result if it completes normally.

@@ -24126,7 +24126,7 @@

Source Text Module Records

*null* - *"\*default\*"* + ~default~ @@ -24143,7 +24143,7 @@

Source Text Module Records

*null* - *"\*default\*"* + ~default~ @@ -24328,7 +24328,7 @@

GetExportedNames ( [ _exportStarSet_ ] ) Concrete Method

ResolveExport ( _exportName_ [ , _resolveSet_ ] ) Concrete Method

The ResolveExport concrete method of a Source Text Module Record implements the corresponding Module Record abstract method.

ResolveExport attempts to resolve an imported binding to the actual defining module and local binding name. The defining module may be the module represented by the Module Record this method was invoked on or some other module that is imported by that module. The parameter _resolveSet_ is used to detect unresolved circular import/export paths. If a pair consisting of specific Module Record and _exportName_ is reached that is already in _resolveSet_, an import circularity has been encountered. Before recursively calling ResolveExport, a pair consisting of _module_ and _exportName_ is added to _resolveSet_.

-

If a defining module is found, a ResolvedBinding Record { [[Module]], [[BindingName]] } is returned. This record identifies the resolved binding of the originally requested export, unless this is the export of a namespace with no local binding. In this case, [[BindingName]] will be set to *"\*namespace\*"*. If no definition was found or the request is found to be circular, *null* is returned. If the request is found to be ambiguous, the string *"ambiguous"* is returned.

+

If a defining module is found, a ResolvedBinding Record { [[Module]], [[BindingName]] } is returned. This record identifies the resolved binding of the originally requested export, unless this is the export of a namespace with no local binding. In this case, [[BindingName]] will be set to ~namespace~. If no definition was found or the request is found to be circular, *null* is returned. If the request is found to be ambiguous, the string *"ambiguous"* is returned.

This abstract method performs the following steps:

@@ -24349,7 +24349,7 @@

ResolveExport ( _exportName_ [ , _resolveSet_ ] ) Concrete Method

1. Let _importedModule_ be ? HostResolveImportedModule(_module_, _e_.[[ModuleRequest]]). 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. Return ResolvedBinding Record { [[Module]]: _importedModule_, [[BindingName]]: ~namespace~ }. 1. Else, 1. Assert: _module_ imports a specific binding for this export. 1. Return _importedModule_.ResolveExport(_e_.[[ImportName]], _resolveSet_). @@ -24398,7 +24398,7 @@

InitializeEnvironment ( ) Concrete Method

1. Else, 1. Let _resolution_ be ? _importedModule_.ResolveExport(_in_.[[ImportName]]). 1. If _resolution_ is *null* or *"ambiguous"*, throw a *SyntaxError* exception. - 1. If _resolution_.[[BindingName]] is *"\*namespace\*"*, then + 1. If _resolution_.[[BindingName]] is ~namespace~, then 1. Let _namespace_ be ? GetModuleNamespace(_resolution_.[[Module]]). 1. Perform ! _env_.CreateImmutableBinding(_in_.[[LocalName]], *true*). 1. Call _env_.InitializeBinding(_in_.[[LocalName]], _namespace_). @@ -24835,18 +24835,18 @@

Static Semantics: BoundNames

ExportDeclaration : `export` `default` HoistableDeclaration 1. Let _declarationNames_ be the BoundNames of |HoistableDeclaration|. - 1. If _declarationNames_ does not include the element *"\*default\*"*, append *"\*default\*"* to _declarationNames_. + 1. If _declarationNames_ does not include the element ~default~, append ~default~ to _declarationNames_. 1. Return _declarationNames_. ExportDeclaration : `export` `default` ClassDeclaration 1. Let _declarationNames_ be the BoundNames of |ClassDeclaration|. - 1. If _declarationNames_ does not include the element *"\*default\*"*, append *"\*default\*"* to _declarationNames_. + 1. If _declarationNames_ does not include the element ~default~, append ~default~ to _declarationNames_. 1. Return _declarationNames_. ExportDeclaration : `export` `default` AssignmentExpression `;` - 1. Return « *"\*default\*"* ». + 1. Return « ~default~ ».
@@ -25001,11 +25001,11 @@

Static Semantics: ExportEntries

ExportDeclaration : `export` `default` AssignmentExpression `;` - 1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: *null*, [[ImportName]]: *null*, [[LocalName]]: *"\*default\*"*, [[ExportName]]: *"default"* }. + 1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: *null*, [[ImportName]]: *null*, [[LocalName]]: ~default~, [[ExportName]]: *"default"* }. 1. Return a new List containing _entry_. -

*"\*default\*"* is used within this specification as a synthetic name for anonymous default export values.

+

~default~ is used within this specification as a synthetic name for anonymous default export values.

@@ -25176,9 +25176,9 @@

Runtime Semantics: Evaluation

1. Let _value_ be ? BindingClassDeclarationEvaluation of |ClassDeclaration|. 1. Let _className_ be the sole element of BoundNames of |ClassDeclaration|. - 1. If _className_ is *"\*default\*"*, then + 1. If _className_ is ~default~, then 1. Let _env_ be the running execution context's LexicalEnvironment. - 1. Perform ? InitializeBoundName(*"\*default\*"*, _value_, _env_). + 1. Perform ? InitializeBoundName(~default~, _value_, _env_). 1. Return NormalCompletion(~empty~). ExportDeclaration : `export` `default` AssignmentExpression `;` @@ -25189,7 +25189,7 @@

Runtime Semantics: Evaluation

1. Let _rhs_ be the result of evaluating |AssignmentExpression|. 1. Let _value_ be ? GetValue(_rhs_). 1. Let _env_ be the running execution context's LexicalEnvironment. - 1. Perform ? InitializeBoundName(*"\*default\*"*, _value_, _env_). + 1. Perform ? InitializeBoundName(~default~, _value_, _env_). 1. Return NormalCompletion(~empty~).