Skip to content

Commit 93f3d26

Browse files
nicolo-ribaudomichaelficarra
authored andcommitted
Review by jmdyck
1 parent 2786b20 commit 93f3d26

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

spec.html

+18-9
Original file line numberDiff line numberDiff line change
@@ -9915,11 +9915,19 @@ <h1>Static Semantics: PropName ( ): a String or ~empty~</h1>
99159915
<emu-alg>
99169916
1. Return the PropName of |PropertyName|.
99179917
</emu-alg>
9918-
<emu-grammar>LiteralPropertyName : IdentifierName</emu-grammar>
9918+
<emu-grammar>
9919+
LiteralPropertyName : IdentifierName
9920+
9921+
AttributeKey : IdentifierName
9922+
</emu-grammar>
99199923
<emu-alg>
99209924
1. Return the StringValue of |IdentifierName|.
99219925
</emu-alg>
9922-
<emu-grammar>LiteralPropertyName : StringLiteral</emu-grammar>
9926+
<emu-grammar>
9927+
LiteralPropertyName : StringLiteral
9928+
9929+
AttributeKey : StringLiteral
9930+
</emu-grammar>
99239931
<emu-alg>
99249932
1. Return the SV of |StringLiteral|.
99259933
</emu-alg>
@@ -26267,7 +26275,7 @@ <h1>ModuleRequest Records</h1>
2626726275
</emu-table>
2626826276

2626926277
<p>A <dfn id="loadedmodulerequest-record" variants="LoadedModuleRequest Records">LoadedModuleRequest Record</dfn> represents the request to import a module together with the resulting Module Record. It consists of the same fields defined in table <emu-xref href="#table-modulerequest-fields"></emu-xref>, with the addition of [[Module]]:</p>
26270-
<emu-table id="table-loadedmodulerequest-fields" caption="LoadedModuleRequest Record fields">
26278+
<emu-table id="table-loadedmodulerequest-fields" caption="LoadedModuleRequest Record Fields">
2627126279
<table>
2627226280
<tr>
2627326281
<th>
@@ -26440,14 +26448,14 @@ <h1>Static Semantics: ModuleRequests ( ): a List of ModuleRequest Records</h1>
2644026448
ExportDeclaration : `export` ExportFromClause FromClause `;`
2644126449
</emu-grammar>
2644226450
<emu-alg>
26443-
1. Let _specifier_ be SV of |FromClause|.
26451+
1. Let _specifier_ be the SV of |FromClause|.
2644426452
1. Return a List whose sole element is the ModuleRequest Record { [[Specifier]]: _specifier_, [[Attributes]]: « » }.
2644526453
</emu-alg>
2644626454
<emu-grammar>
2644726455
ExportDeclaration : `export` ExportFromClause FromClause WithClause `;`
2644826456
</emu-grammar>
2644926457
<emu-alg>
26450-
1. Let _specifier_ be SV of |FromClause|.
26458+
1. Let _specifier_ be the SV of |FromClause|.
2645126459
1. Let _attributes_ be WithClauseToAttributes of |WithClause|.
2645226460
1. Return a List whose sole element is the ModuleRequest Record { [[Specifier]]: _specifier_, [[Attributes]]: _attributes_ }.
2645326461
</emu-alg>
@@ -28575,7 +28583,7 @@ <h1>
2857528583
<emu-alg>
2857628584
1. If _result_ is a normal completion, then
2857728585
1. If _referrer_.[[LoadedModules]] contains a LoadedModuleRequest Record _record_ such that ModuleRequestsEqual(_record_, _moduleRequest_) is *true*, then
28578-
1. Assert: _record_.[[Module]] is _result_.[[Value]].
28586+
1. Assert: _record_.[[Module]] and _result_.[[Value]] are the same Module Record.
2857928587
1. Else,
2858028588
1. Append the LoadedModuleRequest Record { [[Specifier]]: _moduleRequest_.[[Specifier]], [[Attributes]]: _moduleRequest_.[[Attributes]], [[Module]]: _result_.[[Value]] } to _referrer_.[[LoadedModules]].
2858128589
1. If _payload_ is a GraphLoadingState Record, then
@@ -28844,7 +28852,7 @@ <h1>
2884428852
</emu-alg>
2884528853
</emu-clause>
2884628854

28847-
<emu-clause id="sec-with-clause-to-attributes" type="sdo">
28855+
<emu-clause id="sec-withclausetoattributes" type="sdo">
2884828856
<h1>Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Records</h1>
2884928857
<dl class="header">
2885028858
</dl>
@@ -28868,14 +28876,14 @@ <h1>Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Reco
2886828876
<emu-grammar>WithEntries : AttributeKey `:` StringLiteral</emu-grammar>
2886928877
<emu-alg>
2887028878
1. Let _key_ be the PropName of |AttributeKey|.
28871-
1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: SV of |StringLiteral| }.
28879+
1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: the SV of |StringLiteral| }.
2887228880
1. Return « _entry_ ».
2887328881
</emu-alg>
2887428882

2887528883
<emu-grammar>WithEntries : AttributeKey `:` StringLiteral `,` WithEntries</emu-grammar>
2887628884
<emu-alg>
2887728885
1. Let _key_ be the PropName of |AttributeKey|.
28878-
1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: SV of |StringLiteral| }.
28886+
1. Let _entry_ be the ImportAttribute Record { [[Key]]: _key_, [[Value]]: the SV of |StringLiteral| }.
2887928887
1. Let _rest_ be WithClauseToAttributes of |WithEntries|.
2888028888
1. Return the list-concatenation of « _entry_ » and _rest_.
2888128889
</emu-alg>
@@ -50532,6 +50540,7 @@ <h1>Scripts and Modules</h1>
5053250540
<emu-prodref name="ImportedBinding"></emu-prodref>
5053350541
<emu-prodref name="WithClause"></emu-prodref>
5053450542
<emu-prodref name="WithEntries"></emu-prodref>
50543+
<emu-prodref name="AttributeKey"></emu-prodref>
5053550544
<emu-prodref name="ExportDeclaration"></emu-prodref>
5053650545
<emu-prodref name="ExportFromClause"></emu-prodref>
5053750546
<emu-prodref name="NamedExports"></emu-prodref>

0 commit comments

Comments
 (0)