Skip to content

Commit 09d32a3

Browse files
Relax assumption abuot [[CycleRoot]] being a module on evaluated module
1 parent 6d71ca0 commit 09d32a3

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
@@ -27198,7 +27198,11 @@ <h1>Evaluate ( ): a Promise</h1>
2719827198
<emu-alg>
2719927199
1. Assert: This call to Evaluate is not happening at the same time as another call to Evaluate within the surrounding agent.
2720027200
1. Assert: _module_.[[Status]] is one of ~linked~, ~evaluating-async~, or ~evaluated~.
27201-
1. If _module_.[[Status]] is either ~evaluating-async~ or ~evaluated~, set _module_ to _module_.[[CycleRoot]].
27201+
1. If _module_.[[Status]] is either ~evaluating-async~ or ~evaluated~, then
27202+
1. If _module_.[[CycleRoot]] is not ~empty~, then
27203+
1. Set _module_ to _module_.[[CycleRoot]].
27204+
1. Else,
27205+
1. Assert: _module_.[[Status]] is ~evaluated~, _module_.[[EvaluationError]] is a throw completion ~empty~, and _module_.[[TopLevelCapability]] is not ~empty~.
2720227206
1. If _module_.[[TopLevelCapability]] is not ~empty~, then
2720327207
1. Return _module_.[[TopLevelCapability]].[[Promise]].
2720427208
1. Let _stack_ be a new empty List.

0 commit comments

Comments
 (0)