whatwg/loader

Question about interaction with TopLevelModuleEvaluationJob

jonco3 opened this issue · 1 comments

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

@jonco3 confirmed! you're right. we will try to fix this issue soon.