Skip to content

Commit 1831e10

Browse files
typo
1 parent e2975da commit 1831e10

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

spec.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27038,7 +27038,7 @@ <h1>
2703827038
ModuleGraphDFS(
2703927039
_root_: a Cyclic Module Record,
2704027040
_initialStatus_: ~unlinked~ or ~linked~,
27041-
_pendingSatus_: ~linking~ or ~evaluating~,
27041+
_pendingStatus_: ~linking~ or ~evaluating~,
2704227042
_action_: an Abstract Closure,
2704327043
_completeSCC_: an Abstract Closure,
2704427044
_postErrorCleanup_: an Abstract Closure,
@@ -27049,7 +27049,7 @@ <h1>
2704927049
<dd>It synchronously traverses the module graph starting from _root_, in depth-first order, handling strongly connected components and subgraphs that have already been handled by previous ModuleGraphDFS calls.</dd>
2705027050
</dl>
2705127051

27052-
<p>_initialStatus_ and _pendingSatus_ are the possible values of Cyclic Module Records' [[Status]] field to mark them respectively as yet to be handled by this graph traversal, or currently being handled. If a module has a different [[Status]] value it is assumed to have already been handled by a previous ModuleGraphDFS call.</p>
27052+
<p>_initialStatus_ and _pendingStatus_ are the possible values of Cyclic Module Records' [[Status]] field to mark them respectively as yet to be handled by this graph traversal, or currently being handled. If a module has a different [[Status]] value it is assumed to have already been handled by a previous ModuleGraphDFS call.</p>
2705327053

2705427054
<p>The _action_, _completeSCC_ and _postErrorCleanup_ are called on individual modules at different points during the graph traversal:</p>
2705527055

@@ -27065,15 +27065,15 @@ <h1>
2706527065

2706627066
<emu-alg>
2706727067
1. Let _stack_ be a new empty List.
27068-
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingSatus_, _action_, _completeSCC_)).
27068+
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingStatus_, _action_, _completeSCC_)).
2706927069
1. If _result_ is an abrupt completion, then
2707027070
1. For each Cyclic Module Record _module_ of _stack_, do
27071-
1. Assert: _module_.[[Status]] is _pendingSatus_.
27071+
1. Assert: _module_.[[Status]] is _pendingStatus_.
2707227072
1. Perform _postErrorCleanup_(_module_, _result_).
27073-
1. Assert: _module_.[[Status]] is not _pendingSatus_.
27074-
1. Assert: _root_.[[Status]] is not _pendingSatus_.
27073+
1. Assert: _module_.[[Status]] is not _pendingStatus_.
27074+
1. Assert: _root_.[[Status]] is not _pendingStatus_.
2707527075
1. Return Completion(_result_).
27076-
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingSatus_.
27076+
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingStatus_.
2707727077
1. Assert: _stack_ is empty.
2707827078
1. Return ~unused~.
2707927079
</emu-alg>
@@ -27085,7 +27085,7 @@ <h1>
2708527085
_stack_: a List of Cyclic Module Records,
2708627086
_index_: a non-negative integer,
2708727087
_initialStatus_: ~unlinked~ or ~linked~,
27088-
_pendingSatus_: ~linking~ or ~evaluating~,
27088+
_pendingStatus_: ~linking~ or ~evaluating~,
2708927089
_action_: an Abstract Closure,
2709027090
_completeSCC_: an Abstract Closure,
2709127091
): either a normal completion containing a non-negative integer or a throw completion
@@ -27099,23 +27099,23 @@ <h1>
2709927099
1. If _module_ is not a Cyclic Module Record, then
2710027100
1. Perform ? _action_(_module_).
2710127101
1. Return _index_.
27102-
1. If _module_.[[Status]] is _pendingSatus_, return _index_.
27102+
1. If _module_.[[Status]] is _pendingStatus_, return _index_.
2710327103
1. If _module_.[[Status]] is not _initialStatus_, then
2710427104
1. Perform ? _action_(_module_).
2710527105
1. Return _index_.
2710627106
1. Assert: _module_.[[Status]] is _initialStatus_.
27107-
1. Set _module_.[[Status]] to _pendingSatus_.
27107+
1. Set _module_.[[Status]] to _pendingStatus_.
2710827108
1. Let _moduleIndex_ be _index_.
2710927109
1. Set _module_.[[DFSAncestorIndex]] to _index_.
2711027110
1. Set _index_ to _index_ + 1.
2711127111
1. Append _module_ to _stack_.
2711227112
1. For each ModuleRequest Record _request_ of _module_.[[RequestedModules]], do
2711327113
1. Let _requiredModule_ be GetImportedModule(_module_, _request_).
27114-
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingSatus_, _action_, _completeSCC_).
27114+
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingStatus_, _action_, _completeSCC_).
2711527115
1. If _requiredModule_ is a Cyclic Module Record, then
2711627116
1. Assert: _requiredModule_.[[Status]] is not _initialStatus_.
27117-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_ if and only if _stack_ contains _requiredModule_.
27118-
1. If _requiredModule_.[[Status]] is _pendingSatus_, then
27117+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_ if and only if _stack_ contains _requiredModule_.
27118+
1. If _requiredModule_.[[Status]] is _pendingStatus_, then
2711927119
1. Set _module_.[[DFSAncestorIndex]] to min(_module_.[[DFSAncestorIndex]], _requiredModule_.[[DFSAncestorIndex]]).
2712027120
1. Perform ? _action_(_module_).
2712127121
1. Assert: _module_ occurs exactly once in _stack_.
@@ -27126,9 +27126,9 @@ <h1>
2712627126
1. Let _requiredModule_ be the last element of _stack_.
2712727127
1. Remove the last element of _stack_.
2712827128
1. Assert: _requiredModule_ is a Cyclic Module Record.
27129-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_.
27129+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_.
2713027130
1. Perform _completeSCC_(_requiredModule_, _module_).
27131-
1. Assert: _requiredModule_.[[Status]] is not _pendingSatus_.
27131+
1. Assert: _requiredModule_.[[Status]] is not _pendingStatus_.
2713227132
1. If _requiredModule_ and _module_ are the same Module Record, set _done_ to *true*.
2713327133
1. Return _index_.
2713427134
</emu-alg>

0 commit comments

Comments
 (0)