Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit ac05481

Browse files
committed
only set DirectEvaluationCapability for direct async
1 parent 4c41d0b commit ac05481

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ <h1>InnerModuleEvaluation( _module_, _stack_, _index_ )</h1>
499499
1. <ins>Set _module_.[[AsyncParentModules]] to a new empty List.</ins>
500500
1. <ins>Set _module_.[[PendingAsyncDependencies]] to the length of _pendingAsyncDependencies_.</ins>
501501
1. <ins>Let _capability_ be ! NewPromiseCapability(%Promise%).</ins>
502-
1. <ins>Set _module_.[[DirectEvaluationCapability]] to _capability_.</ins>
502+
1. <ins>If _module_[[AsyncModule]] is *true*, then</ins>
503+
1. <ins>Set _module_.[[DirectEvaluationCapability]] to _capability_.</ins>
503504
1. <ins>Set _module_.[[EvaluationCapability]] to _capability_.</ins>
504505
1. <ins>If the length of _pendingAsyncDependencies_ is 0, then</ins>
505506
1. <ins>Perform ! _module_.ExecuteModule(_module_.[[DirectEvaluationCapability]]).</ins>

0 commit comments

Comments
 (0)