wrappedImportHook = async (specifier) => {
        const moduleDescriptor = await importHook(specifier)

        if (
          !isRecordModuleDescriptor(moduleDescriptor) &&
          !isSourceModuleDescriptor(moduleDescriptor)
        ) {
          // probably a builtin
          return moduleDescriptor
        }

        const compartmentDescriptor =
          compartmentMap.compartments[compartmentName]

        /* c8 ignore next */
        if (!compartmentDescriptor) {
          // See comment for unknown compartmentName in the constructor body.
          // Allowing a Compartment with an unknown name to work requires a
          // pass-through in this custom importHook.
          return moduleDescriptor
        }

        // Adds missing imports to the module descriptor from the
        // policy-override.
        for (const overriddenResourceName of getOverriddenResourceNames(
          compartmentDescriptor
        )) {
          // mutates `moduleDescriptor`!!
          updateModuleSource(moduleDescriptor, overriddenResourceName)
        }

        return moduleDescriptor
      }
ImportHook which wraps the original `importHook` to potentially inject
names into {@link CompartmentDescriptor.modules}. The additional names
come from policy-overrides and supplement what @endo/compartment-mapper
was able to detect.

@type {ImportHook}