Skip to content

Commit 64f28a0

Browse files
typo
1 parent 1c3e392 commit 64f28a0

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
@@ -26912,7 +26912,7 @@ <h1>
2691226912
ModuleGraphDFS(
2691326913
_root_: a Cyclic Module Record,
2691426914
_initialStatus_: ~unlinked~ or ~linked~,
26915-
_pendingSatus_: ~linking~ or ~evaluating~,
26915+
_pendingStatus_: ~linking~ or ~evaluating~,
2691626916
_action_: an Abstract Closure,
2691726917
_completeSCC_: an Abstract Closure,
2691826918
_postErrorCleanup_: an Abstract Closure,
@@ -26923,7 +26923,7 @@ <h1>
2692326923
<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>
2692426924
</dl>
2692526925

26926-
<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>
26926+
<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>
2692726927

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

@@ -26939,15 +26939,15 @@ <h1>
2693926939

2694026940
<emu-alg>
2694126941
1. Let _stack_ be a new empty List.
26942-
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingSatus_, _action_, _completeSCC_)).
26942+
1. Let _result_ be Completion(InnerModuleGraphDFS(_root_, _stack_, 0, _initialStatus_, _pendingStatus_, _action_, _completeSCC_)).
2694326943
1. If _result_ is an abrupt completion, then
2694426944
1. For each Cyclic Module Record _module_ of _stack_, do
26945-
1. Assert: _module_.[[Status]] is _pendingSatus_.
26945+
1. Assert: _module_.[[Status]] is _pendingStatus_.
2694626946
1. Perform _postErrorCleanup_(_module_, _result_).
26947-
1. Assert: _module_.[[Status]] is not _pendingSatus_.
26948-
1. Assert: _root_.[[Status]] is not _pendingSatus_.
26947+
1. Assert: _module_.[[Status]] is not _pendingStatus_.
26948+
1. Assert: _root_.[[Status]] is not _pendingStatus_.
2694926949
1. Return Completion(_result_).
26950-
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingSatus_.
26950+
1. Assert: _root_.[[Status]] is not _initialStatus_ or _pendingStatus_.
2695126951
1. Assert: _stack_ is empty.
2695226952
1. Return ~unused~.
2695326953
</emu-alg>
@@ -26959,7 +26959,7 @@ <h1>
2695926959
_stack_: a List of Cyclic Module Records,
2696026960
_index_: a non-negative integer,
2696126961
_initialStatus_: ~unlinked~ or ~linked~,
26962-
_pendingSatus_: ~linking~ or ~evaluating~,
26962+
_pendingStatus_: ~linking~ or ~evaluating~,
2696326963
_action_: an Abstract Closure,
2696426964
_completeSCC_: an Abstract Closure,
2696526965
): either a normal completion containing a non-negative integer or a throw completion
@@ -26973,23 +26973,23 @@ <h1>
2697326973
1. If _module_ is not a Cyclic Module Record, then
2697426974
1. Perform ? _action_(_module_).
2697526975
1. Return _index_.
26976-
1. If _module_.[[Status]] is _pendingSatus_, return _index_.
26976+
1. If _module_.[[Status]] is _pendingStatus_, return _index_.
2697726977
1. If _module_.[[Status]] is not _initialStatus_, then
2697826978
1. Perform ? _action_(_module_).
2697926979
1. Return _index_.
2698026980
1. Assert: _module_.[[Status]] is _initialStatus_.
26981-
1. Set _module_.[[Status]] to _pendingSatus_.
26981+
1. Set _module_.[[Status]] to _pendingStatus_.
2698226982
1. Let _moduleIndex_ be _index_.
2698326983
1. Set _module_.[[DFSAncestorIndex]] to _index_.
2698426984
1. Set _index_ to _index_ + 1.
2698526985
1. Append _module_ to _stack_.
2698626986
1. For each ModuleRequest Record _request_ of _module_.[[RequestedModules]], do
2698726987
1. Let _requiredModule_ be GetImportedModule(_module_, _request_).
26988-
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingSatus_, _action_, _completeSCC_).
26988+
1. Set _index_ to ? InnerModuleGraphDFS(_requiredModule_, _stack_, _index_, _initialStatus_, _pendingStatus_, _action_, _completeSCC_).
2698926989
1. If _requiredModule_ is a Cyclic Module Record, then
2699026990
1. Assert: _requiredModule_.[[Status]] is not _initialStatus_.
26991-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_ if and only if _stack_ contains _requiredModule_.
26992-
1. If _requiredModule_.[[Status]] is _pendingSatus_, then
26991+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_ if and only if _stack_ contains _requiredModule_.
26992+
1. If _requiredModule_.[[Status]] is _pendingStatus_, then
2699326993
1. Set _module_.[[DFSAncestorIndex]] to min(_module_.[[DFSAncestorIndex]], _requiredModule_.[[DFSAncestorIndex]]).
2699426994
1. Perform ? _action_(_module_).
2699526995
1. Assert: _module_ occurs exactly once in _stack_.
@@ -27000,9 +27000,9 @@ <h1>
2700027000
1. Let _requiredModule_ be the last element of _stack_.
2700127001
1. Remove the last element of _stack_.
2700227002
1. Assert: _requiredModule_ is a Cyclic Module Record.
27003-
1. Assert: _requiredModule_.[[Status]] is _pendingSatus_.
27003+
1. Assert: _requiredModule_.[[Status]] is _pendingStatus_.
2700427004
1. Perform _completeSCC_(_requiredModule_, _module_).
27005-
1. Assert: _requiredModule_.[[Status]] is not _pendingSatus_.
27005+
1. Assert: _requiredModule_.[[Status]] is not _pendingStatus_.
2700627006
1. If _requiredModule_ and _module_ are the same Module Record, set _done_ to *true*.
2700727007
1. Return _index_.
2700827008
</emu-alg>

0 commit comments

Comments
 (0)