@jonco3 found this in https://bugzilla.mozilla.org/show_bug.cgi?id=1361988. Given the module graph
test2
^
|
.-> test1 --.
| |
'-- test3 <-'
(with test1 as the root)
it appears we instantiate subgraphs too early, causing assertion failures in HostResolveImportedModule.
We probably need to move all instantiation to the "top level", instead of doing it on subgraphs as we go.
I don't believe this is fixed by any of the in-flight PRs (#2595, #2604, #2625).