Skip to content

Commit 892a45f

Browse files
jmdyck's review
1 parent 21a4aab commit 892a45f

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

spec.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26913,9 +26913,9 @@ <h1>
2691326913
_root_: a Cyclic Module Record,
2691426914
_initialStatus_: ~unlinked~ or ~linked~,
2691526915
_pendingStatus_: ~linking~ or ~evaluating~,
26916-
_action_: an Abstract Closure,
26917-
_completeSCC_: an Abstract Closure,
26918-
_postErrorCleanup_: an Abstract Closure,
26916+
_action_: an Abstract Closure that takes a Module Record and returns either a normal completion containing ~unused~ or a throw completion,
26917+
_completeSCC_: an Abstract Closure that takes a Cyclic Module Record and a Cyclic Module Record and returns ~unused~,
26918+
_postErrorCleanup_: an Abstract Closure that takes a Cyclic Module Record and a throw completion and returns ~unused~,
2691926919
): either a normal completion containing ~unused~ or a throw completion
2692026920
</h1>
2692126921
<dl class="header">
@@ -26959,8 +26959,8 @@ <h1>
2695926959
_index_: a non-negative integer,
2696026960
_initialStatus_: ~unlinked~ or ~linked~,
2696126961
_pendingStatus_: ~linking~ or ~evaluating~,
26962-
_action_: an Abstract Closure,
26963-
_completeSCC_: an Abstract Closure,
26962+
_action_: an Abstract Closure that takes a Module Record and returns either a normal completion containing ~unused~ or a throw completion,
26963+
_completeSCC_: an Abstract Closure that takes a Cyclic Module Record and a Cyclic Module Record and returns ~unused~,
2696426964
): either a normal completion containing a non-negative integer or a throw completion
2696526965
</h1>
2696626966
<dl class="header">
@@ -27117,13 +27117,16 @@ <h1>Link ( ): either a normal completion containing ~unused~ or a throw completi
2711727117
1. Assert: _module_.[[Status]] is one of ~unlinked~, ~linked~, ~evaluating-async~, or ~evaluated~.
2711827118
1. Let _dfsInitialStatus_ be ~unlinked~.
2711927119
1. Let _dfsPendingStatus_ be ~linking~.
27120-
1. Let _dfsAction_ be a new Abstract Closure with parameters (_m_) that performs the following steps when called:
27120+
1. Let _dfsAction_ be a new Abstract Closure with parameters (_m_) that captures nothing and performs the following steps when called:
2712127121
1. If _m_ is not a Cyclic Module Record, perform ? _m_.Link().
2712227122
1. Else if _m_.[[Status]] is ~linking~, perform ? _m_.InitializeEnvironment().
27123-
1. Let _dfsSCCcompletion_ be a new Abstract Closure with parameters (_m_, _sccRoot_) that performs the following steps when called:
27124-
1. Set _m_.[[Status]] to ~linked~.
27125-
1. Let _dfsPostErrorCleanup_ be a new Abstract Closure with parameters (_m_, _errorCompletion_) that performs the following steps when called:
27126-
1. Set _m_.[[Status]] to ~unlinked~.
27123+
1. Return NormalCompletion(~unused~).
27124+
1. Let _dfsSCCcompletion_ be a new Abstract Closure with parameters (_cyclicModule_, _sccRoot_) that captures nothing and performs the following steps when called:
27125+
1. Set _cyclicModule_.[[Status]] to ~linked~.
27126+
1. Return ~unused~.
27127+
1. Let _dfsPostErrorCleanup_ be a new Abstract Closure with parameters (_cyclicModule_, _errorCompletion_) that captures nothing and performs the following steps when called:
27128+
1. Set _cyclicModule_.[[Status]] to ~unlinked~.
27129+
1. Return ~unused~.
2712727130
1. Perform ? ModuleGraphDFS(_module_, _dfsInitialStatus_, _dfsPendingStatus_, _dfsAction_, _dfsSCCcompletion_, _dfsPostErrorCleanup_).
2712827131
1. Return ~unused~.
2712927132
</emu-alg>
@@ -27177,7 +27180,7 @@ <h1>
2717727180
1. Perform ? EvaluateModuleSync(_module_).
2717827181
1. Return ~unused~.
2717927182
1. If _module_.[[Status]] is either ~evaluating-async~ or ~evaluated~, then
27180-
1. Let _cycleRoot_ be to _module_.[[CycleRoot]].
27183+
1. Let _cycleRoot_ be _module_.[[CycleRoot]].
2718127184
1. Assert: _cycleRoot_.[[Status]] is either ~evaluating-async~ or ~evaluated~.
2718227185
1. NOTE: The assertion above holds because a module's [[CycleRoot]] is only set to the SCC root when the whole SCC transitions to ~evaluating-async~ or ~evaluated~.
2718327186
1. If _cycleRoot_.[[EvaluationError]] is an abrupt completion, return _cycleRoot_.[[EvaluationError]].
@@ -27188,7 +27191,7 @@ <h1>
2718827191
1. Let _requiredModule_ be GetImportedModule(_module_, _request_).
2718927192
1. If _requiredModule_ is a Cyclic Module Record, then
2719027193
1. Assert: _requiredModule_.[[Status]] is one of ~evaluating~, ~evaluating-async~, or ~evaluated~.
27191-
1. If _requiredModule_.[[Status]] is ~evaluating-async~ or ~evaluated~, then
27194+
1. If _requiredModule_.[[Status]] is either ~evaluating-async~ or ~evaluated~, then
2719227195
1. Set _requiredModule_ to _requiredModule_.[[CycleRoot]].
2719327196
1. Assert: _requiredModule_.[[Status]] is either ~evaluating-async~ or ~evaluated~.
2719427197
1. Assert: _requiredModule_.[[EvaluationError]] is ~empty~.

0 commit comments

Comments
 (0)