Question about interaction with TopLevelModuleEvaluationJob
jonco3 opened this issue · 1 comments
jonco3 commented
Hi,
How does the loader interaction with TopLevelModuleEvaluationJob[1] work? This calls ParseModule on the module source text and then ModuleDeclarationInstantiation on the resulting module, which will in turn call HostResolveImportedModule for all requested modules. The loader spec's HostResolveImportedModule attempts to read the [[ModuleStatus]] slot from the module (step 7.1.1.3). As I understand it this will not have been set at this point.
[1] http://www.ecma-international.org/ecma-262/6.0/#sec-toplevelmoduleevaluationjob