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

Commit

Permalink
Handle Evaluate() for non-Cyclic modules.
Browse files Browse the repository at this point in the history
Fixes #146.
  • Loading branch information
Ms2ger committed Jan 13, 2021
1 parent 5edcdef commit 2d19ccd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ <h1>InnerModuleEvaluation ( _module_, _stack_, _index_ )</h1>

<emu-alg>
1. If _module_ is not a Cyclic Module Record, then
1. Perform ? _module_.Evaluate().
1. Let _promise_ be ! _module_.Evaluate().
1. Assert: _promise_.[[PromiseState]] is not ~pending~.
1. If _promise_.[[PromiseState]] is ~rejected~, then
1. Return ThrowCompletion(_promise_.[[PromiseStateResult]]).
1. Return _index_.
1. If _module_.[[Status]] is ~evaluated~, then
1. If _module_.[[EvaluationError]] is *undefined*, return _index_.
Expand Down

0 comments on commit 2d19ccd

Please sign in to comment.