You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.html
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -26913,9 +26913,9 @@ <h1>
26913
26913
_root_: a Cyclic Module Record,
26914
26914
_initialStatus_: ~unlinked~ or ~linked~,
26915
26915
_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~,
26919
26919
): either a normal completion containing ~unused~ or a throw completion
26920
26920
</h1>
26921
26921
<dl class="header">
@@ -26959,8 +26959,8 @@ <h1>
26959
26959
_index_: a non-negative integer,
26960
26960
_initialStatus_: ~unlinked~ or ~linked~,
26961
26961
_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~,
26964
26964
): either a normal completion containing a non-negative integer or a throw completion
26965
26965
</h1>
26966
26966
<dl class="header">
@@ -27117,13 +27117,16 @@ <h1>Link ( ): either a normal completion containing ~unused~ or a throw completi
27117
27117
1. Assert: _module_.[[Status]] is one of ~unlinked~, ~linked~, ~evaluating-async~, or ~evaluated~.
27118
27118
1. Let _dfsInitialStatus_ be ~unlinked~.
27119
27119
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:
27121
27121
1. If _m_ is not a Cyclic Module Record, perform ? _m_.Link().
27122
27122
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:
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]].
27181
27184
1. Assert: _cycleRoot_.[[Status]] is either ~evaluating-async~ or ~evaluated~.
27182
27185
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~.
27183
27186
1. If _cycleRoot_.[[EvaluationError]] is an abrupt completion, return _cycleRoot_.[[EvaluationError]].
@@ -27188,7 +27191,7 @@ <h1>
27188
27191
1. Let _requiredModule_ be GetImportedModule(_module_, _request_).
27189
27192
1. If _requiredModule_ is a Cyclic Module Record, then
27190
27193
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
27192
27195
1. Set _requiredModule_ to _requiredModule_.[[CycleRoot]].
27193
27196
1. Assert: _requiredModule_.[[Status]] is either ~evaluating-async~ or ~evaluated~.
27194
27197
1. Assert: _requiredModule_.[[EvaluationError]] is ~empty~.
0 commit comments