Skip to content

Commit 1c9b6f2

Browse files
nicolo-ribaudoljharb
authored andcommitted
Normative: Errored modules have an empty [[CycleRoot]] (tc39#3583)
1 parent 5501329 commit 1c9b6f2

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
@@ -27100,7 +27100,11 @@ <h1>Evaluate ( ): a Promise</h1>
2710027100
<emu-alg>
2710127101
1. Assert: This call to Evaluate is not happening at the same time as another call to Evaluate within the surrounding agent.
2710227102
1. Assert: _module_.[[Status]] is one of ~linked~, ~evaluating-async~, or ~evaluated~.
27103-
1. If _module_.[[Status]] is either ~evaluating-async~ or ~evaluated~, set _module_ to _module_.[[CycleRoot]].
27103+
1. If _module_.[[Status]] is either ~evaluating-async~ or ~evaluated~, then
27104+
1. If _module_.[[CycleRoot]] is not ~empty~, then
27105+
1. Set _module_ to _module_.[[CycleRoot]].
27106+
1. Else,
27107+
1. Assert: _module_.[[Status]] is ~evaluated~ and _module_.[[EvaluationError]] is a throw completion.
2710427108
1. If _module_.[[TopLevelCapability]] is not ~empty~, then
2710527109
1. Return _module_.[[TopLevelCapability]].[[Promise]].
2710627110
1. Let _stack_ be a new empty List.

0 commit comments

Comments
 (0)