Skip to content

Commit

Permalink
more reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy authored and kriskowal committed Aug 18, 2022
1 parent 0a296f2 commit b3063dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 0-module-and-module-source.emu
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,8 @@ location: https://tc39.es/proposal-compartments/
1. IfAbruptRejectPromise(_completion_, _promiseCapability_).
1. Let _importHookPromise_ be ? PromiseResolve(%Promise%, _completion_.[[Value]]).
1. Let _fulfilledClosure_ be a new Abstract Closure with parameters (_result_) that captures _moduleRecord_ and _promiseCapability_ and performs the following steps when called
1. Assert: Evaluate has already been invoked on _moduleRecord_ and successfully completed.
1. If _result_ is an Object that has a [[ImportHook]] internal slot, then
1. Let _moduleRecord_ be _moduleInstanceOrNamespace_.[[Module]].
1. Let _moduleRecord_ be _result_.[[Module]].
1. Perform ! Call(_promiseCapability_.[[Resolve]], *undefined*, « _moduleRecord_ »).
2. Else,
1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *TypeError* object »).
Expand Down

0 comments on commit b3063dc

Please sign in to comment.