From b7eae33ce4bdc7788c03afca4ca9ab4797889737 Mon Sep 17 00:00:00 2001 From: Yusuke Suzuki Date: Fri, 14 Aug 2015 19:58:11 -0700 Subject: [PATCH] Result promise of RequestInstantiateAll will be fulfilled with the registry entry Here, we assume that the result promise of the RequestInstantiateAll will be fulfilled with the module record instance. But actually it will be fulfilled with the registry entry. Since the result of the RequestInstantiate is also fulfilled with the registry entry, we align the RequestInstantiateAll to the RequestInstantiate. --- index.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 060b68d..1985058 100644 --- a/index.bs +++ b/index.bs @@ -370,7 +370,8 @@ A registry entry is a record with the following fields: 1. Let _dep_ be _depEntry_.[[Module]]. 1. Set _pair_.[[value]] to _dep_. 1. Return _dep_. - 1. Return the result of transforming RequestInstantiateAll(_loader_, _depKey_) with a fulfillment handler that, when called with value _dep_, runs the following steps: + 1. Return the result of transforming RequestInstantiateAll(_loader_, _depKey_) with a fulfillment handler that, when called with value _depEntry_, runs the following steps: + 1. Let _dep_ be _depEntry_.[[Module]]. 1. Set _pair_.[[value]] to _dep_. 1. Return _dep_. 1. Append _p_ to _depLoads_.