diff options
author | Moonchild <moonchild@palemoon.org> | 2020-11-28 10:17:43 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-28 10:17:43 +0000 |
commit | e6b9d9cbeae7d90a7f368517c67775c0d72c6445 (patch) | |
tree | b10c4075973d3949a47d60becd9db46b8e505fe4 /js/src/builtin/Module.js | |
parent | b863bd2edc94c16498edc3274531f57fbfc30d3f (diff) | |
download | uxp-modulefix.tar.gz |
Issue #1624 - Add missing error handling and bail on null specifier.modulefix
Diffstat (limited to 'js/src/builtin/Module.js')
-rw-r--r-- | js/src/builtin/Module.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/builtin/Module.js b/js/src/builtin/Module.js index 355303d44d..a7758484eb 100644 --- a/js/src/builtin/Module.js +++ b/js/src/builtin/Module.js @@ -363,7 +363,7 @@ function InnerModuleInstantiation(module, stack, index) // Step 9 let requestedModules = module.requestedModules; for (let i = 0; i < requestedModules.length; i++) { - let required = requestedModules[i]; + let required = requestedModules[i].moduleSpecifier; let requiredModule = CallModuleResolveHook(module, required, MODULE_STATUS_UNINSTANTIATED); index = InnerModuleInstantiation(requiredModule, stack, index); @@ -591,7 +591,7 @@ function InnerModuleEvaluation(module, stack, index) // Step 10 let requestedModules = module.requestedModules; for (let i = 0; i < requestedModules.length; i++) { - let required = requestedModules[i]; + let required = requestedModules[i].moduleSpecifier; let requiredModule = CallModuleResolveHook(module, required, MODULE_STATUS_INSTANTIATED); |