* Called by SpiderMonkey as part of gjs_module_resolve(). * * @param {ModulePrivate | null} importingModulePriv - the private object of * the module initiating the import, null if the import is not coming from * a file that can resolve relative imports * @param {string}
(importingModulePriv, specifier)
| 170 | * @returns {Module} |
| 171 | */ |
| 172 | moduleResolveHook(importingModulePriv, specifier) { |
| 173 | const importingModuleURI = importingModulePriv ? parseURI(importingModulePriv.uri) : null; |
| 174 | const [resolved] = this.resolveModule(specifier, importingModuleURI); |
| 175 | return resolved; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Called by SpiderMonkey as part of gjs_module_load(). |
nothing calls this directly
no test coverage detected