Skip to content

Commit 896bce8

Browse files
committed
Editorial: add a note about synchronicity of SyntheticModule Evaluate
1 parent 60c4df0 commit 896bce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28715,7 +28715,7 @@ <h1>Synthetic Module Records</h1>
2871528715
<tr>
2871628716
<td>[[EvaluationSteps]]</td>
2871728717
<td>an Abstract Closure</td>
28718-
<td>The initialization logic to perform upon evaluation of the module, taking the Synthetic Module Record as its sole argument. It must not modify [[ExportNames]]. It may return an abrupt completion.</td>
28718+
<td>The initialization logic to perform upon evaluation of the module, taking the Synthetic Module Record as its sole argument. It must not modify [[ExportNames]]. It should return a normal completion containing ~unused~, or return an abrupt completion.</td>
2871928719
</tr>
2872028720
</table>
2872128721
</emu-table>
@@ -28871,6 +28871,10 @@ <h1>Evaluate ( ): a Promise</h1>
2887128871
1. Perform ! Call(_pc_.[[Resolve]], *undefined*, « *undefined* »).
2887228872
1. Return _pc_.[[Promise]].
2887328873
</emu-alg>
28874+
28875+
<emu-note>
28876+
<p>The returned promise should always be settled. In InnerModuleEvaluation, a non Cyclic Module Record is evaluated with EvaluateModuleSync, and asserted to return a settled promise.</p>
28877+
</emu-note>
2887428878
</emu-clause>
2887528879
</emu-clause>
2887628880
</emu-clause>

0 commit comments

Comments
 (0)