This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -651,8 +651,8 @@ function logloads(loads) {
651
651
652
652
// custom module records for binding graph
653
653
// store linking module records in a separate table
654
- var moduleRecords = { } ;
655
- function getOrCreateModuleRecord ( name ) {
654
+ function getOrCreateModuleRecord ( name , loader ) {
655
+ var moduleRecords = loader . moduleRecords ;
656
656
return moduleRecords [ name ] || ( moduleRecords [ name ] = {
657
657
name : name ,
658
658
dependencies : [ ] ,
@@ -666,7 +666,7 @@ function logloads(loads) {
666
666
if ( load . module )
667
667
return ;
668
668
669
- var module = load . module = getOrCreateModuleRecord ( load . name ) ;
669
+ var module = load . module = getOrCreateModuleRecord ( load . name , loader ) ;
670
670
var moduleObj = load . module . module ;
671
671
672
672
var registryEntry = load . declare . call ( __global , function ( name , value ) {
@@ -713,7 +713,7 @@ function logloads(loads) {
713
713
}
714
714
// if circular, create the module record
715
715
else {
716
- depModule = getOrCreateModuleRecord ( depName ) ;
716
+ depModule = getOrCreateModuleRecord ( depName , loader ) ;
717
717
}
718
718
}
719
719
}
@@ -844,7 +844,8 @@ function logloads(loads) {
844
844
loaderObj : this ,
845
845
loads : [ ] ,
846
846
modules : { } ,
847
- importPromises : { }
847
+ importPromises : { } ,
848
+ moduleRecords : { }
848
849
} ;
849
850
850
851
// 26.3.3.6
You can’t perform that action at this time.
0 commit comments