19:36
<Francisco Tolmasky>
The expectation is that ShadowRealms should not share module graphs, right? That is to say, import { x } from "y", that x should have nothing in common from the same x imported from y in a parent realm -- but is the module resolution/caching/etc. also "reset"?
20:22
<Ashley Claymore>
https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-HostLoadImportedModule
Says that the "referrer" and "specifier" pair form the cache key of when the host must load the same module.
the referrer record contains a link to the realm. So the realm is part of the cache key
20:24
<Ashley Claymore>
Module resolution itself is not part of the 262 spec. So hosts could resolve different between different shadow realms if they wanted to. Would be my understanding