From 86cc26a44fc88e20d7cd3d2a2b1b635865458c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 23 Aug 2024 15:15:30 +0200 Subject: [PATCH] Review by jmdyck --- spec.html | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/spec.html b/spec.html index f0e8a9334d..a2c6e75259 100644 --- a/spec.html +++ b/spec.html @@ -9879,11 +9879,19 @@

Static Semantics: PropName ( ): a String or ~empty~

1. Return the PropName of |PropertyName|. - LiteralPropertyName : IdentifierName + + LiteralPropertyName : IdentifierName + + AttributeKey : IdentifierName + 1. Return the StringValue of |IdentifierName|. - LiteralPropertyName : StringLiteral + + LiteralPropertyName : StringLiteral + + AttributeKey : StringLiteral + 1. Return the SV of |StringLiteral|. @@ -26214,7 +26222,7 @@

ModuleRequest Records

A LoadedModuleRequest Record represents the request to import a module together with the resulting Module Record. It consists of the same fields defined in table , with the addition of [[Module]]:

- +
@@ -26387,14 +26395,14 @@

Static Semantics: ModuleRequests ( ): a List of ModuleRequest Records

ExportDeclaration : `export` ExportFromClause FromClause `;` - 1. Let _specifier_ be SV of |FromClause|. + 1. Let _specifier_ be the SV of |FromClause|. 1. Return a List whose sole element is the ModuleRequest Record { [[Specifier]]: _specifier_, [[Attributes]]: « » }. ExportDeclaration : `export` ExportFromClause FromClause WithClause `;` - 1. Let _specifier_ be SV of |FromClause|. + 1. Let _specifier_ be the SV of |FromClause|. 1. Let _attributes_ be WithClauseToAttributes of |WithClause|. 1. Return a List whose sole element is the ModuleRequest Record { [[Specifier]]: _specifier_, [[Attributes]]: _attributes_ }. @@ -28519,7 +28527,7 @@

1. If _result_ is a normal completion, then 1. If _referrer_.[[LoadedModules]] contains a LoadedModuleRequest Record _record_ such that ModuleRequestsEqual(_record_, _moduleRequest_) is *true*, then - 1. Assert: _record_.[[Module]] is _result_.[[Value]]. + 1. Assert: _record_.[[Module]] and _result_.[[Value]] are the same Module Record. 1. Else, 1. Append the LoadedModuleRequest Record { [[Specifier]]: _moduleRequest_.[[Specifier]], [[Attributes]]: _moduleRequest_.[[Attributes]], [[Module]]: _result_.[[Value]] } to _referrer_.[[LoadedModules]]. 1. If _payload_ is a GraphLoadingState Record, then @@ -28788,7 +28796,7 @@

- +

Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Records

@@ -28812,14 +28820,14 @@

Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Reco WithEntries : AttributeKey `:` StringLiteral 1. Let _key_ be the PropName of |AttributeKey|. - 1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: SV of |StringLiteral| }. + 1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: the SV of |StringLiteral| }. 1. Return « _entry_ ». WithEntries : AttributeKey `:` StringLiteral `,` WithEntries 1. Let _key_ be the PropName of |AttributeKey|. - 1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: SV of |StringLiteral| }. + 1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: the SV of |StringLiteral| }. 1. Let _rest_ be WithClauseToAttributes of |WithEntries|. 1. Return the list-concatenation of « _entry_ » and _rest_. @@ -50476,6 +50484,7 @@

Scripts and Modules

+