| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 42729f0 commit 8c8525c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -485,8 +485,8 @@ function resolveAndLinkDependencies(module) { | |||
| 485 | 485 | // The "secret" variable refers to the global variable we added to | |
| 486 | 486 | // "contextifiedObject" when creating the context. | |
| 487 | 487 | export default secret; | |
| 488 | - `, { context: referencingModule.context }); | ||
| 489 | - moduleMap.set(specifier, linkedModule); | ||
| 488 | + `, { context: module.context }); | ||
| 489 | + moduleMap.set(specifier, requestedModule); | ||
| 490 | 490 | // Resolve the dependencies of the new module as well. | |
| 491 | 491 | resolveAndLinkDependencies(requestedModule); | |
| 492 | 492 | } | |
@@ -566,8 +566,8 @@ const contextifiedObject = vm.createContext({ | |||
| 566 | 566 | // The "secret" variable refers to the global variable we added to | |
| 567 | 567 | // "contextifiedObject" when creating the context. | |
| 568 | 568 | export default secret; | |
| 569 | - `, { context: referencingModule.context }); | ||
| 570 | - moduleMap.set(specifier, linkedModule); | ||
| 569 | + `, { context: module.context }); | ||
| 570 | + moduleMap.set(specifier, requestedModule); | ||
| 571 | 571 | // Resolve the dependencies of the new module as well. | |
| 572 | 572 | resolveAndLinkDependencies(requestedModule); | |
| 573 | 573 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments