diff --git a/index.bs b/index.bs index 060b68d..850cfb2 100644 --- a/index.bs +++ b/index.bs @@ -271,7 +271,8 @@ A registry entry is a record with the following fields: 1. If _entry_.[[Instantiate]] is *undefined*, then set _entry_.[[Instantiate]] to a new promise. -1. Return CommitInstantiated(_loader_, _entry_, _optionalInstance_, _source_). +1. CommitInstantiated(_loader_, _entry_, _optionalInstance_, _source_). +1. Fulfill _entry_.[[Instantiate]] with _entry_.

CommitInstantiated(loader, entry, optionalInstance, source)

@@ -280,7 +281,6 @@ A registry entry is a record with the following fields: 1. Let _instance_ be Instantiation(_loader_, _optionalInstance_, _source_). 1. ReturnIfAbrupt(_instance_). 1. // TODO: edge case: what if _instance_ is a thenable function? -1. Fulfill _entry_.[[Instantiate]] with _instance_. 1. Let _deps_ be a new empty List. 1. If _instance_ is a Module Record, then: 1. Assert: _instance_ is a Source Text Module Record.