Skip to content

Commit aea09db

Browse files
Ensure all evaluated modules have a [[CycleRoot]]
1 parent 6d71ca0 commit aea09db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27198,7 +27198,9 @@ <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. Assert: _module_.[[CycleRoot]] is not ~empty~.
27203+
1. Set _module_ to _module_.[[CycleRoot]].
2720227204
1. If _module_.[[TopLevelCapability]] is not ~empty~, then
2720327205
1. Return _module_.[[TopLevelCapability]].[[Promise]].
2720427206
1. Let _stack_ be a new empty List.
@@ -27211,6 +27213,7 @@ <h1>Evaluate ( ): a Promise</h1>
2721127213
1. Assert: _m_.[[AsyncEvaluationOrder]] is ~unset~.
2721227214
1. Set _m_.[[Status]] to ~evaluated~.
2721327215
1. Set _m_.[[EvaluationError]] to _result_.
27216+
1. Set _m_.[[CycleRoot]] to _m_.
2721427217
1. Assert: _module_.[[Status]] is ~evaluated~.
2721527218
1. Assert: _module_.[[EvaluationError]] and _result_ are the same Completion Record.
2721627219
1. Perform ! Call(_capability_.[[Reject]], *undefined*, « _result_.[[Value]] »).

0 commit comments

Comments
 (0)