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ยง

DynamicModule ๐Ÿ”’
DynamicModuleList ๐Ÿ”’
ImportMap ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#import-map-processing-model
ModuleContext ๐Ÿ”’
The context required for asynchronously loading an external module script source.
ModuleHandler ๐Ÿ”’
ModuleObject ๐Ÿ”’
ModuleScript ๐Ÿ”’
ModuleSource ๐Ÿ”’
ModuleTree ๐Ÿ”’
ResolvedModule ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#specifier-resolution-record
RethrowError ๐Ÿ”’
ScriptFetchOptions ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#script-fetch-options

Enumsยง

ModuleIdentity ๐Ÿ”’
Identity for a module which will be used to retrieve the module when weโ€™d like to get it from module map.
ModuleOwner ๐Ÿ”’
The owner of the module It can be worker or script element
ModuleStatus ๐Ÿ”’

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)
HostPopulateImportMeta ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-hostgetimportmetaproperties https://html.spec.whatwg.org/multipage/#hostgetimportmetaproperties
HostResolveImportedModule ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-HostLoadImportedModule https://html.spec.whatwg.org/multipage/#hostloadimportedmodule
fetch_an_import_module_script_graph ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-an-import()-module-script-graph
fetch_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_single_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
gen_type_error ๐Ÿ”’
host_add_ref_top_level_script ๐Ÿ”’ โš 
host_import_module_dynamically ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-hostimportmoduledynamically https://html.spec.whatwg.org/multipage/#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability)
host_release_top_level_script ๐Ÿ”’ โš 
merge_existing_and_new_import_maps ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#merge-existing-and-new-import-maps
merge_module_specifier_maps ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#merge-module-specifier-maps
module_script_from_reference_private ๐Ÿ”’ โš 
normalize_module_integrity_map ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#normalizing-a-module-integrity-map
normalize_specifier_key ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#normalizing-a-specifier-key
parse_an_import_map_string ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#parse-an-import-map-string
register_import_map ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#register-an-import-map
resolve_imports_match ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#resolving-an-imports-match
sort_and_normalize_module_specifier_map ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#sorting-and-normalizing-a-module-specifier-map
sort_and_normalize_scopes ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#sorting-and-normalizing-scopes

Type Aliasesยง

ModuleIntegrityMap ๐Ÿ”’
ModuleSpecifierMap ๐Ÿ”’