Skip to content

Commit acc3d85

Browse files
typo
1 parent 269fc6d commit acc3d85

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
@@ -27061,7 +27061,7 @@ <h1>
2706127061
ModuleGraphDFS(
2706227062
_root_: a Cyclic Module Record,
2706327063
_initialStatus_: ~unlinked~ or ~linked~,
27064-
_pendingSatus_: ~linking~ or ~evaluating~,
27064+
_pendingStatus_: ~linking~ or ~evaluating~,
2706527065
_action_: an Abstract Closure,
2706627066
_completeSCC_: an Abstract Closure,
2706727067
_postErrorCleanup_: an Abstract Closure,
@@ -27072,7 +27072,7 @@ <h1>
2707227072
<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>
2707327073
</dl>
2707427074

27075-
<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>
27075+
<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>
2707627076

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

@@ -27088,15 +27088,15 @@ <h1>
2708827088

2708927089
<emu-alg>
2709027090
1. Let _stack_ be a new empty List.
27091-
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingSatus_, _action_, _completeSCC_)).
27091+
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingStatus_, _action_, _completeSCC_)).
2709227092
1. If _result_ is an abrupt completion, then
2709327093
1. For each Cyclic Module Record _module_ of _stack_, do
27094-
1. Assert: _module_.[[Status]] is _pendingSatus_.
27094+
1. Assert: _module_.[[Status]] is _pendingStatus_.
2709527095
1. Perform _postErrorCleanup_(_module_, _result_).
27096-
1. Assert: _module_.[[Status]] is not _pendingSatus_.
27097-
1. Assert: _root_.[[Status]] is not _pendingSatus_.
27096+
1. Assert: _module_.[[Status]] is not _pendingStatus_.
27097+
1. Assert: _root_.[[Status]] is not _pendingStatus_.
2709827098
1. Return Completion(_result_).
27099-
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingSatus_.
27099+
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingStatus_.
2710027100
1. Assert: _stack_ is empty.
2710127101
1. Return ~unused~.
2710227102
</emu-alg>
@@ -27108,7 +27108,7 @@ <h1>
2710827108
_stack_: a List of Cyclic Module Records,
2710927109
_index_: a non-negative integer,
2711027110
_initialStatus_: ~unlinked~ or ~linked~,
27111-
_pendingSatus_: ~linking~ or ~evaluating~,
27111+
_pendingStatus_: ~linking~ or ~evaluating~,
2711227112
_action_: an Abstract Closure,
2711327113
_completeSCC_: an Abstract Closure,
2711427114
): either a normal completion containing a non-negative integer or a throw completion
@@ -27122,23 +27122,23 @@ <h1>
2712227122
1. If _module_ is not a Cyclic Module Record, then
2712327123
1. Perform ? _action_(_module_).
2712427124
1. Return _index_.
27125-
1. If _module_.[[Status]] is _pendingSatus_, return _index_.
27125+
1. If _module_.[[Status]] is _pendingStatus_, return _index_.
2712627126
1. If _module_.[[Status]] is not _initialStatus_, then
2712727127
1. Perform ? _action_(_module_).
2712827128
1. Return _index_.
2712927129
1. Assert: _module_.[[Status]] is _initialStatus_.
27130-
1. Set _module_.[[Status]] to _pendingSatus_.
27130+
1. Set _module_.[[Status]] to _pendingStatus_.
2713127131
1. Let _moduleIndex_ be _index_.
2713227132
1. Set _module_.[[DFSAncestorIndex]] to _index_.
2713327133
1. Set _index_ to _index_ + 1.
2713427134
1. Append _module_ to _stack_.
2713527135
1. For each ModuleRequest Record _request_ of _module_.[[RequestedModules]], do
2713627136
1. Let _requiredModule_ be GetImportedModule(_module_, _request_).
27137-
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingSatus_, _action_, _completeSCC_).
27137+
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingStatus_, _action_, _completeSCC_).
2713827138
1. If _requiredModule_ is a Cyclic Module Record, then
2713927139
1. Assert: _requiredModule_.[[Status]] is not _initialStatus_.
27140-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_ if and only if _stack_ contains _requiredModule_.
27141-
1. If _requiredModule_.[[Status]] is _pendingSatus_, then
27140+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_ if and only if _stack_ contains _requiredModule_.
27141+
1. If _requiredModule_.[[Status]] is _pendingStatus_, then
2714227142
1. Set _module_.[[DFSAncestorIndex]] to min(_module_.[[DFSAncestorIndex]], _requiredModule_.[[DFSAncestorIndex]]).
2714327143
1. Perform ? _action_(_module_).
2714427144
1. Assert: _module_ occurs exactly once in _stack_.
@@ -27149,9 +27149,9 @@ <h1>
2714927149
1. Let _requiredModule_ be the last element of _stack_.
2715027150
1. Remove the last element of _stack_.
2715127151
1. Assert: _requiredModule_ is a Cyclic Module Record.
27152-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_.
27152+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_.
2715327153
1. Perform _completeSCC_(_requiredModule_, _module_).
27154-
1. Assert: _requiredModule_.[[Status]] is not _pendingSatus_.
27154+
1. Assert: _requiredModule_.[[Status]] is not _pendingStatus_.
2715527155
1. If _requiredModule_ and _module_ are the same Module Record, set _done_ to *true*.
2715627156
1. Return _index_.
2715727157
</emu-alg>

0 commit comments

Comments
 (0)