Skip to content

Circular module graphs instantiate too early #2629

@domenic

Description

@domenic

@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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions