From 2ac37ef241e20e4922f72cadc52067b9f7d3a91b Mon Sep 17 00:00:00 2001 From: guybedford Date: Mon, 10 Jul 2017 15:26:14 +0200 Subject: [PATCH] ensure state is cleared for registry removal --- core/register-loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/register-loader.js b/core/register-loader.js index db45549..96bb08d 100644 --- a/core/register-loader.js +++ b/core/register-loader.js @@ -403,6 +403,7 @@ function instantiateDeps (loader, load, link, registry, state) { depsInstantiatePromise = depsInstantiatePromise.catch(function (err) { // throw up the instantiateDeps stack + link.depsInstantiatePromise = undefined; throw addToError(err, 'Loading ' + load.key); }); @@ -423,7 +424,7 @@ function deepInstantiateDeps (loader, load, link, registry, state) { if (seen.indexOf(load) !== -1) return; seen.push(load); - + loadCnt++; instantiateDeps(loader, load, link, registry, state) .then(processLoad, reject);