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

Commit 2ac37ef

Browse files
committed
ensure state is cleared for registry removal
1 parent 7f0d8cd commit 2ac37ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/register-loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ function instantiateDeps (loader, load, link, registry, state) {
403403

404404
depsInstantiatePromise = depsInstantiatePromise.catch(function (err) {
405405
// throw up the instantiateDeps stack
406+
link.depsInstantiatePromise = undefined;
406407
throw addToError(err, 'Loading ' + load.key);
407408
});
408409

@@ -423,7 +424,7 @@ function deepInstantiateDeps (loader, load, link, registry, state) {
423424
if (seen.indexOf(load) !== -1)
424425
return;
425426
seen.push(load);
426-
427+
427428
loadCnt++;
428429
instantiateDeps(loader, load, link, registry, state)
429430
.then(processLoad, reject);

0 commit comments

Comments
 (0)