Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
ensure state is cleared for registry removal
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 10, 2017
1 parent 7f0d8cd commit 2ac37ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/register-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand All @@ -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);
Expand Down

0 comments on commit 2ac37ef

Please sign in to comment.