Skip to main content

Module script_module

Module script_module 

Source
Expand description

The script module mod contains common traits and structs related to type=module for script thread or worker threads.

Structsยง

ModuleContext ๐Ÿ”’
The context required for asynchronously loading an external module script source.
ModuleHandler ๐Ÿ”’
ModuleObject ๐Ÿ”’
ModuleTree ๐Ÿ”’
ResolvedModule ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#specifier-resolution-record
RethrowError ๐Ÿ”’

Enumsยง

ModuleStatus ๐Ÿ”’

Constantsยง

MODULE_RECORD_SLOT ๐Ÿ”’
https://searchfox.org/firefox-main/rev/9a8a80db6ce10ffc2fc91a1e25685eed59ce3501/js/loader/ModuleLoaderBase.h#597

Functionsยง

EnsureModuleHooksInitialized ๐Ÿ”’ โš 
A function to register module hooks (e.g. listening on resolving modules, getting module metadata, getting script private reference and resolving dynamic import)
HostLoadImportedModule ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-HostLoadImportedModule https://html.spec.whatwg.org/multipage/#hostloadimportedmodule
HostPopulateImportMeta ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-hostgetimportmetaproperties https://html.spec.whatwg.org/multipage/#hostgetimportmetaproperties
fetch_a_module_script_graph ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-module-worker-script-tree https://html.spec.whatwg.org/multipage/#fetch-a-worklet/module-worker-script-graph
fetch_a_modulepreload_module ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-modulepreload-module-script-graph
fetch_a_single_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
fetch_an_external_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-module-script-tree
fetch_inline_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-an-inline-module-script-graph
fetch_the_descendants_and_link_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-the-descendants-of-and-link-a-module-script
host_add_ref_top_level_script ๐Ÿ”’ โš 
host_release_top_level_script ๐Ÿ”’ โš 
import_meta_resolve ๐Ÿ”’ โš 
module_script_from_reference_private ๐Ÿ”’ โš 

Type Aliasesยง

ModuleRequest ๐Ÿ”’