This proposes a new JS module reflection API for this proposal, to support a JS module reflection returning a SourceTextModule class instance, and which can be instantiated into a ModuleInstance instance, linked and executed.
The provided documentation details the entire API as well as an example of how to construct a comprehensive module loader in less than 50 lines of code that obeys spec semantics and invariants while allowing resolution and linkage customization.
This proposes a new JS module reflection API for this proposal, to support a JS module reflection returning a
SourceTextModule
class instance, and which can be instantiated into aModuleInstance
instance, linked and executed.The provided documentation details the entire API as well as an example of how to construct a comprehensive module loader in less than 50 lines of code that obeys spec semantics and invariants while allowing resolution and linkage customization.